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 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 domain example.com "Domain"
hydra_safe_run chroot /tmp/debootstrap/ apt-get install grub-pc -y
hydra_safe_run grub-install --root-directory=/tmp/debootstrap/boot --no-floppy "$device"
mkdir -p /tmp/debootstrap/boot/grub/
- cat /tmp/debootstrap/boot/grub/grub.cfg <<-EOF
+ cat >> /tmp/debootstrap/boot/grub/grub.cfg <<-EOF
set menu_color_normal=white/blue
set menu_color_highlight=yellow/red