summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-11 23:52:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-11 23:52:23 -0300
commit5530d9e3c8a2fee58dc09319da707b15026f5a02 (patch)
tree8a3fc73e767b7f75cff38728e36275b656af52a8
parent1895000807e839f2719b6a965dfc0b949d165382 (diff)
downloadhydra-5530d9e3c8a2fee58dc09319da707b15026f5a02.tar.gz
hydra-5530d9e3c8a2fee58dc09319da707b15026f5a02.tar.bz2
Adding root_size parameter at provision
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 3e46134..eae3669 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -22,6 +22,7 @@ hydra_config_load
# Setup.
hydra_user_input device /dev/sdb "Destination device"
+hydra_user_input root_size 20G "Size of root partition"
hydra_user_input swap y "Use swap? (y/n)"
hydra_user_input encrypt y "Encrypt system and storage volumes? (y/n)"
hydra_user_input garbage y "Pre-fill volumes with garbage? (y/n)"
@@ -83,7 +84,7 @@ fi
if ! lvdisplay $vg/root &> /dev/null; then
echo "Creating logical volume..."
- lvcreate -L20G -n root $vg
+ lvcreate -L$root_size -n root $vg
fi
vgchange -a y $vg