[rhel7-branch 1/1] Fix adding 'boot=' option in FIPS mode
vojtechtrefny
installerbot-noreply at redhat.com
Thu Jun 18 11:09:36 UTC 2015
From: Vojtech Trefny <vtrefny at redhat.com>
'boot=' option shouldn't be added when there is no separate /boot
partition.
Resolves: rhbz#1190146
Signed-off-by: Vojtech Trefny <vtrefny at 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)
#
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/2d36da0f2f5646985563e0a28bafc352148c0a10
More information about the anaconda-patches
mailing list