From 5530d9e3c8a2fee58dc09319da707b15026f5a02 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 11 Apr 2012 23:52:23 -0300 Subject: Adding root_size parameter at provision --- share/hydractl/provision | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share/hydractl/provision') 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 -- cgit v1.2.3