summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iw/silo.py22
-rw-r--r--textw/silo.py2
2 files changed, 12 insertions, 12 deletions
diff --git a/iw/silo.py b/iw/silo.py
index 0040053ae..b7cf8d6a0 100644
--- a/iw/silo.py
+++ b/iw/silo.py
@@ -76,7 +76,7 @@ class SiloWindow (InstallWindow):
def mbr_toggled (self, widget, *args):
if widget.get_active ():
- part = self.boothd
+ part = self.mbrpart
else:
part = self.bootpart
prompath = self.todo.silo.disk2PromPath(part)
@@ -144,9 +144,9 @@ class SiloWindow (InstallWindow):
self.ignoreSignals = 0
if '/' not in self.todo.mounts.keys (): return None
- (bootpart, boothd) = self.todo.silo.getSiloOptions()
+ (bootpart, boothd, mbrpart) = self.todo.silo.getSiloOptions()
self.bootpart = bootpart
- self.boothd = boothd
+ self.mbrpart = mbrpart
format = "/dev/%s"
@@ -166,15 +166,9 @@ class SiloWindow (InstallWindow):
part = GtkRadioButton(self.mbr,
("/dev/%s %s" % (bootpart,
_("First sector of boot partition"))))
- 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);
+ self.radioBox.attach(self.mbr, 1, 2, 2, 3)
+ self.radioBox.attach(part, 1, 2, 3, 4)
- # FIXME: Position this correctly
self.linuxAlias = GtkCheckButton(
_("Create PROM alias") + ":")
if (self.todo.silo.hasAliases()):
@@ -188,6 +182,12 @@ class SiloWindow (InstallWindow):
tempBox.pack_start(self.linuxAliasLabel)
self.radioBox.attach(tempBox, 0, 2, 4, 5)
+ self.mbr.connect("toggled", self.mbr_toggled)
+ if self.todo.silo.getSiloMbrDefault() == 'mbr':
+ self.mbr.set_active (TRUE)
+ else:
+ part.set_active (TRUE);
+
self.bootDevice = GtkCheckButton(_("Set default PROM boot device to linux"))
self.radioBox.attach(self.bootDevice, 0, 2, 5, 6)
self.bootDevice.set_active (TRUE)
diff --git a/textw/silo.py b/textw/silo.py
index 3a28f7283..7ae16e454 100644
--- a/textw/silo.py
+++ b/textw/silo.py
@@ -45,7 +45,7 @@ class SiloWindow:
if '/' not in todo.mounts.keys (): return INSTALL_NOOP
if todo.skipLilo: return INSTALL_NOOP
- (bootpart, boothd) = todo.silo.getSiloOptions()
+ (bootpart, boothd, mbrpart) = todo.silo.getSiloOptions()
format = "/dev/%-11s %s%*s"
str1 = _("Master Boot Record (MBR)")