]> gitweb.fluxo.info Git - hydra.git/commitdiff
Minor fix at swap device
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 7 May 2011 14:50:31 +0000 (11:50 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 7 May 2011 14:50:31 +0000 (11:50 -0300)
share/hydractl/provision

index e31b195e778efee005b5a7b69ef3dd873878f102..e3f00f6d651c7dc8768c53cfeefc2a8767e18b8e 100755 (executable)
@@ -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
 # <target name> <source device>   <key file>  <options>
 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.