diff options
author | jakub <jakub> | 2000-02-16 16:07:06 +0000 |
---|---|---|
committer | jakub <jakub> | 2000-02-16 16:07:06 +0000 |
commit | 339eacb1cd2e1bdfc8969bb358c903e24a59dc51 (patch) | |
tree | b381b6e8561bf2483d83d8ae570584f1d1a99a69 /textw | |
parent | b900bf48ec3442aaf6d13994e77a893d10c5b0b7 (diff) | |
download | anaconda-339eacb1cd2e1bdfc8969bb358c903e24a59dc51.tar.gz anaconda-339eacb1cd2e1bdfc8969bb358c903e24a59dc51.tar.xz anaconda-339eacb1cd2e1bdfc8969bb358c903e24a59dc51.zip |
MbrDevice is something different on SPARC than on Intel
Bootable RAID1 support for SILO
Diffstat (limited to 'textw')
-rw-r--r-- | textw/silo.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/textw/silo.py b/textw/silo.py index b2c84218d..2dab79807 100644 --- a/textw/silo.py +++ b/textw/silo.py @@ -56,9 +56,10 @@ class SiloWindow: if todo.skipLilo: return INSTALL_NOOP bootpart = todo.fstab.getBootDevice() - boothd = todo.fstab.getMbrDevice() + boothd = todo.silo.getMbrDevice(todo.fstab) format = "/dev/%-11s %s%*s" + # FIXME: Should be Master Boot Records (MBR) in RAID1 case str1 = _("Master Boot Record (MBR)") str2 = _("First sector of boot partition") str3 = _("Create PROM alias `linux'") @@ -72,10 +73,19 @@ class SiloWindow: dflt = 1 else: dflt = 0 - rc1 = SingleRadioButton (format % (boothd, str1, lenmax - len1, ""), None, dflt ) + bootdisk = boothd + if bootpart[:2] == "md": + bootdisk = bootpart + rc1 = SingleRadioButton (format % (bootdisk, str1, lenmax - len1, ""), None, dflt ) rc2 = SingleRadioButton (format % (bootpart, str2, lenmax - len2, ""), rc1, 1 - dflt) - - prompath = todo.silo.disk2PromPath(bootpart) + if bootpart[:2] == "md": + rc1.setFlags (FLAG_DISABLED, FLAGS_SET) + rc2.setFlags (FLAG_DISABLED, FLAGS_SET) + + bootdisk = bootpart + if bootpart[:2] == "md": + bootdisk = boothd + prompath = todo.silo.disk2PromPath(bootdisk) if prompath and len(prompath) > 0 and todo.silo.hasAliases(): default = 1 else: |