summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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