From 7a8bb3e0e0965b8abb96520bd7195978d9b3832c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 16 Aug 2014 16:46:50 -0300 Subject: Fix swap config --- 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 31ea7d3..9f1c677 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -308,13 +308,13 @@ fi if [ "$swap" != "0" ] && [ "$random_swap" == "y" ]; then cat >> /tmp/debootstrap/etc/crypttab <<-EOF -swap /dev/mapper/$vg-swap none luks,swap +swap /dev/mapper/$vg-swap /dev/random swap,cipher=aes-xts-plain64:sha256 EOF fi if [ "$swap" != "0" ] && [ "$random_swap" != "y" ]; then cat >> /tmp/debootstrap/etc/crypttab <<-EOF -swap /dev/mapper/$vg-swap /dev/random swap,cipher=aes-xts-plain64:sha256 +swap /dev/mapper/$vg-swap none luks,swap EOF fi -- cgit v1.2.3