From 875199dfed7bed172772eaadf720a54490286762 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 8 May 2011 11:31:50 -0300 Subject: Using $swap_device at provision --- share/hydractl/provision | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share') 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 # 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. -- cgit v1.2.3