diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-08-17 20:45:43 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-08-17 20:45:43 -0300 |
commit | a134a4704c83912c8374313853cbcb4e8b788150 (patch) | |
tree | 7f54a33088df4f969214156899fcfba69c7c267b /share | |
parent | b0064a62765f6109d3f2ac1a831799c63515969a (diff) | |
download | hydra-a134a4704c83912c8374313853cbcb4e8b788150.tar.gz hydra-a134a4704c83912c8374313853cbcb4e8b788150.tar.bz2 |
Move specific initramfs-tools to its block
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/provision | 15 |
1 files changed, 8 insertions, 7 deletions
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 |