aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydractl/provision4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 291815d..bfd5e78 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -646,7 +646,9 @@ EOF
#if [ -e "$WORK/etc/cryptsetup-initramfs/conf-hook" ]; then
# hydra_sudo_run sed -i -e 's/#CRYPTSETUP=/CRYPTSETUP=y/' $WORK/etc/cryptsetup-initramfs/conf-hook
#fi
- echo "CRYPTSETUP=y" > $WORK/etc/initramfs-tools/hooks/cryptsetup.conf
+ cat <<-EOF | $SUDO tee $WORK/etc/initramfs-tools/hooks/cryptsetup.conf > /dev/null
+CRYPTSETUP=y
+EOF
hydra_sudo_run chroot $WORK update-initramfs -u
else