add rd.luks.uuid to GRUB_CMDLINE (fixes unbootable system with dracut… (#265)

* add rd.luks.uuid to GRUB_CMDLINE (fixes unbootable system with dracut --nohostonly, and doesn't affect any other initramfs generators)

* typo
This commit is contained in:
V3n3RiX 2016-10-18 17:59:51 +01:00 committed by Philip
parent 645ba95989
commit 601f61fefa

View File

@ -51,7 +51,9 @@ def modify_grub_default(partitions, root_mount_point, distributor):
cryptdevice_params = [ cryptdevice_params = [
"cryptdevice=UUID={!s}:{!s}".format(partition["luksUuid"], "cryptdevice=UUID={!s}:{!s}".format(partition["luksUuid"],
partition["luksMapperName"]), partition["luksMapperName"]),
"root=/dev/mapper/{!s}".format(partition["luksMapperName"]) "root=/dev/mapper/{!s}".format(partition["luksMapperName"]),
# Fix for unbootable system with dracut --nohostonly
"rd.luks.uuid={!s}".format(partition["luksUuid"])
] ]
kernel_params = ["quiet"] kernel_params = ["quiet"]