aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-01-29 13:34:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-01-29 13:34:58 -0300
commit761273fe2ad2c9c15b41d0e05afd69a52ca9a08e (patch)
treecbb57332fdf7d4aefe9f504aa0ab3fda64a9d706
parent18a0b35d83b48a6f5136a30ddb81f32e8a882810 (diff)
downloadhydra-761273fe2ad2c9c15b41d0e05afd69a52ca9a08e.tar.gz
hydra-761273fe2ad2c9c15b41d0e05afd69a52ca9a08e.tar.bz2
Fix: provision: initramfs: cryptsetup config (2)
-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