# Setup.
hydra_user_input device /dev/sdb "Destination device"
hydra_user_input root_size 20G "Size of root partition"
-hydra_user_input swap_size 0 "Swap size (in MB, 0 to not create it)"
-hydra_user_input home_size 0 "Size of home partition (0 to not create it, -1 for all free space)"
-hydra_user_input var_size 0 "Size of var partition (0 to not create it, -1 for all free space)"
+hydra_user_input swap_size 2000 "Swap size (in MB, 0 to not create it)"
+hydra_user_input home_size 20G "Size of home partition (0 to not create it, -1 for all free space)"
+hydra_user_input var_size 20G "Size of var partition (0 to not create it, -1 for all free space)"
hydra_user_input encrypt y "Encrypt volumes? (y/n)"
hydra_user_input garbage y "Pre-fill volumes with garbage? (y/n)"
hydra_user_input hostname $HOSTNAME "Hostname"
hydra_user_input arch amd64 "System arch"
hydra_user_input version wheezy "Distro version"
hydra_user_input vg vg "Temporary install vg"
-hydra_user_input grub n "Setup GRUB? (y/n)"
+hydra_user_input grub y "Setup GRUB? (y/n)"
hydra_user_input mirror http://http.debian.net/debian/ "Debian mirror"
# Check for requirements.
hydra_safe_run vgcreate $vg $syst_device
fi
-sleep 5
+hydra_safe_run vgdisplay
hydra_safe_run vgchange -a y $vg
hydra_lvcreate root $root_size
hydra_lvcreate home $home_size