# Make sure there is provision config.
function hydra_provision_config {
- hydra_user_config interactive y "Interactive mode? (y/n)"
- hydra_user_config device /dev/sdb "Destination device"
- hydra_user_config device_label msdos "Device disk label"
- hydra_user_config root_size 20G "Size of root partition"
- hydra_user_config swap_size 2000 "Swap size (in MB, 0 to not create it)"
- hydra_user_config home_size 20G "Size of home partition (0 to not create it, -1 for all free space)"
- hydra_user_config var_size 20G "Size of var partition (0 to not create it, -1 for all free space)"
- hydra_user_config encrypt y "Encrypt volumes? (y/n)"
- hydra_user_config garbage y "Pre-fill volumes with garbage? (y/n)"
- hydra_user_config disable_zeroing n "Disable zeroing of lvm volumes? (y/n)"
- hydra_user_config hostname $HOSTNAME "Hostname"
- hydra_user_config domain example.com "Domain"
- hydra_user_config arch amd64 "System arch"
- hydra_user_config version wheezy "Distro version"
- hydra_user_config vg vg "Install vg"
- hydra_user_config grub y "Setup GRUB? (y/n)"
- hydra_user_config mirror http://http.debian.net/debian/ "Debian mirror"
+ hydra_user_config interactive y "Interactive mode? (y/n)"
+ hydra_user_config device /dev/sdb "Destination device"
+ hydra_user_config device_label msdos "Device disk label"
+ hydra_user_config root_size 20G "Size of root partition"
+ hydra_user_config swap_size 2000 "Swap size (in MB, 0 to not create it)"
+ hydra_user_config home_size 20G "Size of home partition (0 to not create it, -1 for all free space)"
+ hydra_user_config var_size 20G "Size of var partition (0 to not create it, -1 for all free space)"
+ hydra_user_config encrypt y "Encrypt volumes? (y/n)"
+ hydra_user_config garbage y "Pre-fill volumes with garbage? (y/n)"
+ hydra_user_config disable_zeroing n "Disable zeroing of lvm volumes? (y/n)"
+ hydra_user_config hostname $HOSTNAME "Hostname"
+ hydra_user_config domain example.com "Domain"
+ hydra_user_config arch amd64 "System arch"
+ hydra_user_config version wheezy "Distro version"
+ hydra_user_config vg vg "Install vg"
+ hydra_user_config grub y "Setup GRUB? (y/n)"
+ hydra_user_config mirror http://http.debian.net/debian/ "Debian mirror"
}
# Setup.