From cd5b2d10722f389c2dde70519f81e49c78ddf43e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 7 May 2011 11:50:31 -0300 Subject: Minor fix at swap device --- share/hydractl/provision | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/hydractl/provision b/share/hydractl/provision index e31b195..e3f00f6 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -87,11 +87,12 @@ 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 "$device"1 /dev/random swap,cipher=aes-cbc-essiv:sha256 +cswap $swap /dev/random swap,cipher=aes-cbc-essiv:sha256 EOF # Fstab. -- cgit v1.2.3