From 7707f83a38116e7904ac63569c83805aa2d9d8c3 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Mon, 5 Aug 2024 13:58:20 -0400 Subject: [PATCH] Corrected mistakes on dracut config and crypttab --- gentoo-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gentoo-install.sh b/gentoo-install.sh index 7527bac..acfd201 100755 --- a/gentoo-install.sh +++ b/gentoo-install.sh @@ -284,11 +284,11 @@ function stage_step() { echo "echo \"kernel_cmdline+=\\\" root=UUID=$rootUUID rd.luks.uuid=$luksUUID \\\" >> /mnt/gentoo/etc/dracut.conf.d/luks.conf" fi else - echo "luksvol UUID=$luksUUID none luks" >> /mnt/gentoo/etc/crypttab + echo "luksvol UUID=$luksUUID none luks,initramfs" >> /mnt/gentoo/etc/crypttab if [[ ! -d "/mnt/gentoo/etc/dracut.conf.d" ]]; then mkdir /mnt/gentoo/etc/dracut.d &>/dev/null - echo "add_dracutmodules+=\" crypt dm rootfs-block \"" > /mnt/gentoo/etc/dracut.conf.d/luks.conf - echo "kernel_cmdline+=\" root=UUID=$rootUUID rd.luks.uuid=$luksUUID " >> /mnt/gentoo/etc/dracut.conf.d/luks.conf + echo "add_dracutmodules+=\" crypt dm rootfs-block \"" > /mnt/gentoo/etc/dracut.d/luks.conf + echo "kernel_cmdline+=\" root=UUID=$rootUUID rd.luks.uuid=$luksUUID " >> /mnt/gentoo/etc/dracut.d/luks.conf fi fi fi