From 886cbaa28718a5ec3e05a08ffb06a63fa369214c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 28 Jan 2013 23:30:03 -0200 Subject: Minor fixes --- share/hydractl/provision | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'share/hydractl/provision') diff --git a/share/hydractl/provision b/share/hydractl/provision index 6915c34..d47f6c9 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -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 } -- cgit v1.2.3