aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-28 23:30:03 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-28 23:30:03 -0200
commit886cbaa28718a5ec3e05a08ffb06a63fa369214c (patch)
tree67a5222a82e96046acc7f9b8589e940abba28f54 /share/hydractl/provision
parent6a94d032c35d8f13c581669fb9b077cb75c86583 (diff)
downloadhydra-886cbaa28718a5ec3e05a08ffb06a63fa369214c.tar.gz
hydra-886cbaa28718a5ec3e05a08ffb06a63fa369214c.tar.bz2
Minor fixes
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-xshare/hydractl/provision9
1 files changed, 4 insertions, 5 deletions
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
}