]> gitweb.fluxo.info Git - hydra.git/commitdiff
Minor fixes
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Jan 2013 01:30:03 +0000 (23:30 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Jan 2013 01:30:03 +0000 (23:30 -0200)
share/hydractl/provision

index 6915c3488ebb420d7a3953098e039e11adfad5e8..d47f6c98a8c344462ffcbd0239ca2c4047e16709 100755 (executable)
@@ -32,16 +32,15 @@ function hydra_lvcreate {
 
   if ! lvdisplay $vg/$volume &> /dev/null; then
     echo "Creating logical volume $volume..."
-    # See http://forums.funtoo.org/viewtopic.php?id=1206
-    #     https://bbs.archlinux.org/viewtopic.php?id=124615
-    #hydra_safe_run lvcreate -Z n -L$size -n $volume $vg
-
     if [ "$size" == "-1" ]; then
-      space="-l %FREE"
+      space="-l 100%FREE"
     else
       space="-L $size"
     fi
 
+    # See http://forums.funtoo.org/viewtopic.php?id=1206
+    #     https://bbs.archlinux.org/viewtopic.php?id=124615
+    #hydra_safe_run lvcreate -Z n $space -n $volume $vg
     hydra_safe_run lvcreate $space -n $volume $vg
   fi
 }