]> gitweb.fluxo.info Git - hydra.git/commitdiff
Provision: configure /etc/cryptsetup-initramfs/conf-hook if needed
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 24 May 2017 20:36:25 +0000 (17:36 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 24 May 2017 20:36:25 +0000 (17:36 -0300)
share/hydractl/provision

index 2ca8c0ac8b6ece77210f7efbf0e521d0c475e973..97d99378b7be35b2da18b8a95149ca9d11c8b97c 100755 (executable)
@@ -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.