diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/provision | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index e3f00f6..72b99e4 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -9,6 +9,7 @@ hydra_config_load # Setup. hydra_user_input device /dev/sdb "Destination device" +hydra_user_input swap_device /dev/sda1 "Final swap device" 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" @@ -87,12 +88,11 @@ chroot /tmp/debootstrap/ apt-get upgrade -y chroot /tmp/debootstrap/ apt-get install locales cryptsetup lvm2 initramfs-tools -y # Crypttab. -swap="$device"1 echo "Configuring crypttab..." cat > /tmp/debootstrap/etc/crypttab <<-EOF # <target name> <source device> <key file> <options> root /dev/mapper/vg-root none luks,cipher=aes-cbc-essiv:sha256 -cswap $swap /dev/random swap,cipher=aes-cbc-essiv:sha256 +cswap $swap_device /dev/random swap,cipher=aes-cbc-essiv:sha256 EOF # Fstab. |