]> gitweb.fluxo.info Git - hydra.git/commitdiff
Provision: fixing crypttab entries
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 20:22:38 +0000 (18:22 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 20:22:38 +0000 (18:22 -0200)
share/hydractl/provision

index 4a270ed6eef85fba25f7f68e9f63214eb1ddeecd..4c1822e74aa4ca4823fdb4b3591d46ad385b6b6f 100755 (executable)
@@ -274,7 +274,7 @@ echo "# <target name> <source device>   <key file>  <options>" > /tmp/debootstra
 
 if [ "$encrypt" == "y" ]; then
   cat > /tmp/debootstrap/etc/crypttab <<-EOF
-root            /dev/mapper/vg-root     none            luks,cipher=aes-cbc-essiv:sha256
+root            /dev/mapper/vg-root      none            luks,cipher=aes-cbc-essiv:sha256  
 EOF
 fi
 
@@ -292,7 +292,7 @@ fi
 
 if [ "$swap" != "0" ]; then
   cat >> /tmp/debootstrap/etc/crypttab <<-EOF
-cswap           $swap_device               /dev/random     swap,cipher=aes-cbc-essiv:sha256
+cswap           $swap_device                  /dev/random     swap,cipher=aes-cbc-essiv:sha256
 EOF
 fi