summaryrefslogtreecommitdiffstats
path: root/iw/bootlocwidget.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-21 19:12:17 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-21 19:12:17 +0000
commitca836a73b9ae41c994a362bfc694209acfd2ebf6 (patch)
tree86903c42b5e1a688b6d87eab6dcfb2f77ff56dd0 /iw/bootlocwidget.py
parent1d737a6003b4147b8954d511591711437c9ed0d4 (diff)
downloadanaconda-ca836a73b9ae41c994a362bfc694209acfd2ebf6.tar.gz
anaconda-ca836a73b9ae41c994a362bfc694209acfd2ebf6.tar.xz
anaconda-ca836a73b9ae41c994a362bfc694209acfd2ebf6.zip
fix to not allow changing drive order if using lilo
Diffstat (limited to 'iw/bootlocwidget.py')
-rw-r--r--iw/bootlocwidget.py7
1 files changed, 6 insertions, 1 deletions
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