'boot=' option shouldn't be added when there is no separate /boot partition.
Resolves: rhbz#1190146
Signed-off-by: Vojtech Trefny vtrefny@redhat.com
From: Vojtech Trefny vtrefny@redhat.com
'boot=' option shouldn't be added when there is no separate /boot partition.
Resolves: rhbz#1190146
Signed-off-by: Vojtech Trefny vtrefny@redhat.com --- pyanaconda/bootloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py index 999c29d..bc60c15 100644 --- a/pyanaconda/bootloader.py +++ b/pyanaconda/bootloader.py @@ -800,7 +800,8 @@ def set_boot_args(self, *args, **kwargs): # # FIPS # - if flags.cmdline.get("fips") == "1": + boot_device = storage.mountpoints.get("/boot") + if flags.cmdline.get("fips") == "1" and boot_device: self.boot_args.add("boot=%s" % self.stage2_device.fstabSpec)
#
Added label: rhel7-branch.
Looks good to me.
Added label: ACK.
Pushed.
Closed.
anaconda-patches@lists.fedorahosted.org