summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-05-07 11:50:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-05-07 11:50:31 -0300
commitcd5b2d10722f389c2dde70519f81e49c78ddf43e (patch)
tree6c13c5cf09ae05830caad3ce86c049a5e0fd2893 /share
parentb3c30b2a85b6764f840c846360d1ac9b87e583e2 (diff)
downloadhydra-cd5b2d10722f389c2dde70519f81e49c78ddf43e.tar.gz
hydra-cd5b2d10722f389c2dde70519f81e49c78ddf43e.tar.bz2
Minor fix at swap device
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 2 insertions, 1 deletions
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
# <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.