]> gitweb.fluxo.info Git - hydra.git/commitdiff
Redirect fix
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Sep 2015 16:47:07 +0000 (13:47 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Sep 2015 16:47:07 +0000 (13:47 -0300)
share/hydractl/provision

index c3285597235dc9e47def9100beba7ee4e2432b16..53cab778c7cf42ab032f860c245f24b224d40405 100755 (executable)
@@ -312,7 +312,7 @@ hydra_sudo_run chroot $WORK/ apt-get install locales cryptsetup lvm2 initramfs-t
 
 # Crypttab.
 echo "Configuring crypttab..."
-echo "# <target name> <source device>   <key file>  <options>" > $WORK/etc/crypttab
+echo "# <target name> <source device>   <key file>  <options>" | $SUDO tee $WORK/etc/crypttab
 
 if [ "$encrypt" == "y" ]; then
   cat <<-EOF | $SUDO tee $WORK/etc/crypttab