From c58e74227b89a2531f60a5b9b60cefdab95d2979 2019-02-22 17:06:53 From: Unknown Date: 2019-02-22 17:06:53 Subject: [PATCH] fix? --- diff --git a/bootstrap.d/14-fstab.sh b/bootstrap.d/14-fstab.sh index 29760e2..73675c4 100644 --- a/bootstrap.d/14-fstab.sh +++ b/bootstrap.d/14-fstab.sh @@ -40,6 +40,9 @@ fi # Generate initramfs file if [ "$ENABLE_INITRAMFS" = true ] ; then + # Generate initramfs without encrypted root partition support + chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}" + if [ "$ENABLE_CRYPTFS" = true ] ; then # Include initramfs scripts to auto expand encrypted root partition if [ "$EXPANDROOT" = true ] ; then @@ -103,9 +106,10 @@ if [ "$ENABLE_INITRAMFS" = true ] ; then # Dummy mapping required by mkinitramfs echo "0 1 crypt $(echo "${CRYPTFS_CIPHER}" | cut -d ':' -f 1) ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 0 7:0 4096" | chroot_exec dmsetup create "${CRYPTFS_MAPPING}" + # Generate initramfs without encrypted root partition support + chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}" + # Remove dummy mapping chroot_exec cryptsetup close "${CRYPTFS_MAPPING}" fi - # Generate initramfs without encrypted root partition support - chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}" fi