From a134a4704c83912c8374313853cbcb4e8b788150 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 17 Aug 2018 20:45:43 -0300 Subject: Move specific initramfs-tools to its block --- share/hydractl/provision | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'share') diff --git a/share/hydractl/provision b/share/hydractl/provision index 24796a9..cc8c323 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -461,13 +461,6 @@ fi # Kernel. echo "Installing kernel..." -cat <<-EOF | $SUDO tee $WORK/etc/initramfs-tools/modules > /dev/null -dm-mod -dm-crypt -dm-raid -aes -sha256 -EOF cat <<-EOF | $SUDO tee $WORK/etc/kernel-img.conf > /dev/null do_initrd = Yes @@ -488,6 +481,14 @@ echo "Creating initramfs..." if [ "$initramfs" == "initramfs-tools" ]; then $APT_INSTALL initramfs-tools -y + cat <<-EOF | $SUDO tee $WORK/etc/initramfs-tools/modules > /dev/null +dm-mod +dm-crypt +dm-raid +aes +sha256 +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 -- cgit v1.2.3