]> gitweb.fluxo.info Git - hydra.git/commitdiff
Adding root_size parameter at provision
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Apr 2012 02:52:23 +0000 (23:52 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Apr 2012 02:52:23 +0000 (23:52 -0300)
share/hydractl/provision

index 3e4613441113f1e24e233efd4051852cf8d71b13..eae36695b913426ff0adc2dcf895c96e969cb954 100755 (executable)
@@ -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