Browse code

Merge "Don't prepend $DATA_DIR to volume path that already has it"

Jenkins authored on 2015/02/18 04:45:30
Showing 1 changed files
... ...
@@ -86,7 +86,7 @@ function _create_lvm_volume_group {
86 86
     local backing_file=$DATA_DIR/$vg$BACKING_FILE_SUFFIX
87 87
     if ! sudo vgs $vg; then
88 88
         # Only create if the file doesn't already exists
89
-        [[ -f $DATA_DIR/$backing_file ]] || truncate -s $size $backing_file
89
+        [[ -f $backing_file ]] || truncate -s $size $backing_file
90 90
         local vg_dev=`sudo losetup -f --show $backing_file`
91 91
 
92 92
         # Only create volume group if it doesn't already exist