summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorjakub <jakub>1999-10-04 16:33:15 +0000
committerjakub <jakub>1999-10-04 16:33:15 +0000
commit8c0c9dfa0c3da692ab5e5f094921d14075e36e5d (patch)
tree5f368bdb6b8bab5dda26c0bdb5248ff32f43cb65 /iw
parent61e73e1c69889508fc78875a3412e8134708ad32 (diff)
downloadanaconda-8c0c9dfa0c3da692ab5e5f094921d14075e36e5d.tar.gz
anaconda-8c0c9dfa0c3da692ab5e5f094921d14075e36e5d.tar.xz
anaconda-8c0c9dfa0c3da692ab5e5f094921d14075e36e5d.zip
Find out reasonable default for MBR.
Diffstat (limited to 'iw')
-rw-r--r--iw/silo.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/iw/silo.py b/iw/silo.py
index 0c64a193d..0040053ae 100644
--- a/iw/silo.py
+++ b/iw/silo.py
@@ -161,14 +161,18 @@ class SiloWindow (InstallWindow):
label.set_alignment(0.0, 0.5)
self.radioBox.attach(label, 0, 2, 1, 2)
- part = GtkRadioButton(None,
+ self.mbr = GtkRadioButton(None,
+ ("/dev/%s %s" % (boothd, _("Master Boot Record (MBR)"))))
+ part = GtkRadioButton(self.mbr,
("/dev/%s %s" % (bootpart,
_("First sector of boot partition"))))
- self.mbr = GtkRadioButton(part,
- ("/dev/%s %s" % (boothd, _("Master Boot Record (MBR)"))))
self.radioBox.attach(part, 1, 2, 2, 3)
self.radioBox.attach(self.mbr, 1, 2, 3, 4)
self.mbr.connect("toggled", self.mbr_toggled)
+ if self.todo.silo.getSiloMbrDefault() == 'mbr':
+ self.mbr.set_active (TRUE)
+ else:
+ part.set_active (TRUE);
# FIXME: Position this correctly
self.linuxAlias = GtkCheckButton(