# 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)"
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