summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-02-04 00:55:24 +0000
committerJeremy Katz <katzj@redhat.com>2003-02-04 00:55:24 +0000
commitf59714c4a2a5147ea7360c2c24309429c0e9f53f (patch)
treeabbbb90016adaef3a1367aa49f7b1265ca74e450 /iw
parentce165c1a2a764c9316fe8c71a0a5a1fac7d136bd (diff)
downloadanaconda-f59714c4a2a5147ea7360c2c24309429c0e9f53f.tar.gz
anaconda-f59714c4a2a5147ea7360c2c24309429c0e9f53f.tar.xz
anaconda-f59714c4a2a5147ea7360c2c24309429c0e9f53f.zip
no lilo on x86_64
Diffstat (limited to 'iw')
-rw-r--r--iw/bootloader_main_gui.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/iw/bootloader_main_gui.py b/iw/bootloader_main_gui.py
index 29e8e4ab9..de1273372 100644
--- a/iw/bootloader_main_gui.py
+++ b/iw/bootloader_main_gui.py
@@ -103,7 +103,8 @@ class MainBootloaderWindow(InstallWindow):
if newrc != 1:
continue
blname = None
- elif self.lilo_radio.get_active() == gtk.TRUE:
+ elif ((self.lilo_radio is not None)
+ and (self.lilo_radio.get_active() == gtk.TRUE)):
blname = "LILO"
else:
blname = "GRUB"
@@ -133,8 +134,12 @@ class MainBootloaderWindow(InstallWindow):
self.grub_radio = gtk.RadioButton(None, (_("Use _GRUB as the "
"boot loader")))
- self.lilo_radio = gtk.RadioButton(self.grub_radio,
- (_("Use _LILO as the boot loader")))
+ if iutil.getArch() == "i386":
+ self.lilo_radio = gtk.RadioButton(self.grub_radio,
+ (_("Use _LILO as the boot "
+ "loader")))
+ else:
+ self.lilo_radio = None
self.none_radio = gtk.RadioButton(self.grub_radio, (_("_Do not "
"install a "
"boot loader")))
@@ -142,12 +147,13 @@ class MainBootloaderWindow(InstallWindow):
radio_vbox.pack_start(label, gtk.FALSE)
radio_vbox.pack_start(self.grub_radio, gtk.FALSE)
- radio_vbox.pack_start(self.lilo_radio, gtk.FALSE)
+ if self.lilo_radio:
+ radio_vbox.pack_start(self.lilo_radio, gtk.FALSE)
radio_vbox.pack_start(self.none_radio, gtk.FALSE)
if self.blname is None:
self.none_radio.set_active(gtk.TRUE)
- elif self.blname == "LILO":
+ elif self.blname == "LILO" and iutil.getArch() == "i386":
self.lilo_radio.set_active(gtk.TRUE)
else:
self.grub_radio.set_active(gtk.TRUE)