Corrected mistakes on dracut config and crypttab

This commit is contained in:
Eric Renfro 2024-08-05 13:58:20 -04:00
parent cbb324cbdc
commit 7707f83a38
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -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