aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-24 17:36:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-24 17:36:25 -0300
commit04056b925a9e081299b9a4cf7a721905afd51750 (patch)
treef951cbb74112b2c8eaf012140b18787fe8975212 /share
parent223d9951f4fe0183a058e44d589d405f0c278cbf (diff)
downloadhydra-04056b925a9e081299b9a4cf7a721905afd51750.tar.gz
hydra-04056b925a9e081299b9a4cf7a721905afd51750.tar.bz2
Provision: configure /etc/cryptsetup-initramfs/conf-hook if needed
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/provision4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 2ca8c0a..97d9937 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -442,6 +442,10 @@ $APT_INSTALL linux-image-$kernel_arch -y
# Initramfs.
echo "Creating initramfs..."
+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
+
hydra_sudo_run chroot $WORK update-initramfs -u
# Grub.