summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2008-12-15 16:40:00 +0100
committerHans de Goede <hdegoede@redhat.com>2008-12-15 16:40:00 +0100
commit1263e881d7029c85bb0cca42abd5851827751d17 (patch)
tree95551fed79dec3db87f5fe397f1615f0949bc326
parenta739e9d8426b79d17aef86c01817278a17ee7fae (diff)
downloadanaconda-1263e881d7029c85bb0cca42abd5851827751d17.tar.gz
anaconda-1263e881d7029c85bb0cca42abd5851827751d17.tar.xz
anaconda-1263e881d7029c85bb0cca42abd5851827751d17.zip
Allow bootloader on mbr when /boot is dmraid1 (#217176)
This patch allows installing the bootloader on the mbr when using mdraid1, as requested in bug 217176. It also contains some special handling of this case in bootloader.py, to make sure our default behaviour does not change.
-rw-r--r--bootloader.py3
-rw-r--r--fsset.py5
2 files changed, 7 insertions, 1 deletions
diff --git a/bootloader.py b/bootloader.py
index 486cb64a2..d88da31a9 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -85,7 +85,8 @@ def bootloaderSetupChoices(dispatch, bl, fsset, diskSet, dir):
log("MBR not suitable as boot device; installing to partition")
bl.defaultDevice = "boot"
bl.setDevice(choices[bl.defaultDevice][0])
- elif choices and choices.has_key("mbr"):
+ elif choices and choices.has_key("mbr") and not \
+ (choices.has_key("boot") and choices["boot"][1] == N_("RAID Device")):
bl.setDevice(choices["mbr"][0])
elif choices and choices.has_key("boot"):
bl.setDevice(choices["boot"][0])
diff --git a/fsset.py b/fsset.py
index 22fd824b2..cee9ef70f 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1340,6 +1340,11 @@ MAILADDR root
if bootDev.getName() == "RAIDDevice":
ret['boot'] = (bootDev.device, N_("RAID Device"))
+ try:
+ # we won't have this on zFCP-only zSeries systems
+ ret['mbr'] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
+ except:
+ pass
return ret
if iutil.getPPCMacGen() == "NewWorld":