diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-05-07 11:50:31 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-05-07 11:50:31 -0300 |
commit | cd5b2d10722f389c2dde70519f81e49c78ddf43e (patch) | |
tree | 6c13c5cf09ae05830caad3ce86c049a5e0fd2893 /share | |
parent | b3c30b2a85b6764f840c846360d1ac9b87e583e2 (diff) | |
download | hydra-cd5b2d10722f389c2dde70519f81e49c78ddf43e.tar.gz hydra-cd5b2d10722f389c2dde70519f81e49c78ddf43e.tar.bz2 |
Minor fix at swap device
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/provision | 3 |
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. |