summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydractl/provision4
1 files changed, 2 insertions, 2 deletions
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