diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-21 19:12:17 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-21 19:12:17 +0000 |
commit | ca836a73b9ae41c994a362bfc694209acfd2ebf6 (patch) | |
tree | 86903c42b5e1a688b6d87eab6dcfb2f77ff56dd0 | |
parent | 1d737a6003b4147b8954d511591711437c9ed0d4 (diff) | |
download | anaconda-ca836a73b9ae41c994a362bfc694209acfd2ebf6.tar.gz anaconda-ca836a73b9ae41c994a362bfc694209acfd2ebf6.tar.xz anaconda-ca836a73b9ae41c994a362bfc694209acfd2ebf6.zip |
fix to not allow changing drive order if using lilo
-rw-r--r-- | iw/bootloader_advanced_gui.py | 4 | ||||
-rw-r--r-- | iw/bootlocwidget.py | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/iw/bootloader_advanced_gui.py b/iw/bootloader_advanced_gui.py index 05b514f91..91a5f3ec8 100644 --- a/iw/bootloader_advanced_gui.py +++ b/iw/bootloader_advanced_gui.py @@ -77,11 +77,13 @@ class AdvancedBootloaderWindow(InstallWindow): def bootloaderChanged(self, widget, *args): if widget == self.grub_radio and self.grub_radio.get_active(): # grub is the boot loader - self.blloc.getWidget().set_sensitive(gtk.TRUE) + self.blloc.getWidget().set_sensitive(gtk.TRUE) + self.blloc.setUsingGrub(1) self.options_vbox.set_sensitive(gtk.TRUE) elif widget == self.lilo_radio and self.lilo_radio.get_active(): # lilo is the boot loader self.blloc.getWidget().set_sensitive(gtk.TRUE) + self.blloc.setUsingGrub(0) self.options_vbox.set_sensitive(gtk.TRUE) elif widget == self.none_radio and self.none_radio.get_active(): # using no boot loader diff --git a/iw/bootlocwidget.py b/iw/bootlocwidget.py index 166bd3e1a..77248efa6 100644 --- a/iw/bootlocwidget.py +++ b/iw/bootlocwidget.py @@ -31,6 +31,7 @@ class BootloaderLocationWidget: self.parent = parent self.intf = intf self.driveOrder = bl.drivelist + self.usingGrub = self.bl.useGrub() locationBox = gtk.VBox (gtk.FALSE, 2) locationBox.set_border_width(5) @@ -79,11 +80,12 @@ class BootloaderLocationWidget: def editDriveOrder(self, *args): # we only support this for grub - if not self.bl.useGrub(): + if not self.usingGrub: self.intf.messageWindow(_("Unable to Change Drive Order for LILO"), _("We do not support changing the " "drive order for use with LILO."), type="ok") + return @@ -146,3 +148,6 @@ class BootloaderLocationWidget: def getDriveOrder(self): return self.driveOrder + + def setUsingGrub(self, val): + self.usingGrub = val |