From f5793a760dad6bc49a58fa636e036e2901fb8477 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 18 Oct 2016 17:59:51 +0100 Subject: [PATCH] =?UTF-8?q?add=20rd.luks.uuid=20to=20GRUB=5FCMDLINE=20(fix?= =?UTF-8?q?es=20unbootable=20system=20with=20dracut=E2=80=A6=20(#265)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add rd.luks.uuid to GRUB_CMDLINE (fixes unbootable system with dracut --nohostonly, and doesn't affect any other initramfs generators) * typo --- src/modules/grubcfg/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/grubcfg/main.py b/src/modules/grubcfg/main.py index 643cd085b..f90b276b0 100644 --- a/src/modules/grubcfg/main.py +++ b/src/modules/grubcfg/main.py @@ -51,7 +51,9 @@ def modify_grub_default(partitions, root_mount_point, distributor): cryptdevice_params = [ "cryptdevice=UUID={!s}:{!s}".format(partition["luksUuid"], 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"]