]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix swap config
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 16 Aug 2014 19:46:50 +0000 (16:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 16 Aug 2014 19:46:50 +0000 (16:46 -0300)
share/hydractl/provision

index 31ea7d3a861384c9dce253a7eab58d962a3ed637..9f1c67701f68b7c062a9cc4ea0f501f66325f37a 100755 (executable)
@@ -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