summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2010-05-10 16:49:35 -0400
committerChris Lumens <clumens@redhat.com>2010-05-11 10:00:35 -0400
commit63fb1731cd77976f99b42dbf2c3598821b7faaff (patch)
treef9ef9840788f556a58fb8f10957286e149fbb498 /textw
parentfce670e62c43ff293718e63601e247de1b7dd3ea (diff)
downloadanaconda-63fb1731cd77976f99b42dbf2c3598821b7faaff.tar.gz
anaconda-63fb1731cd77976f99b42dbf2c3598821b7faaff.tar.xz
anaconda-63fb1731cd77976f99b42dbf2c3598821b7faaff.zip
Don't allow creating a new bootloader config in text mode (#580378).
Text mode doesn't have the UI to create a new bootloader config, and we just write the default in installation mode. Therefore we shouldn't allow it on upgrades either.
Diffstat (limited to 'textw')
-rw-r--r--textw/upgrade_bootloader_text.py25
1 files changed, 5 insertions, 20 deletions
diff --git a/textw/upgrade_bootloader_text.py b/textw/upgrade_bootloader_text.py
index db736f35c..1512b1dfd 100644
--- a/textw/upgrade_bootloader_text.py
+++ b/textw/upgrade_bootloader_text.py
@@ -91,16 +91,11 @@ class UpgradeBootloaderWindow:
blradio = RadioGroup()
- (update, newbl, nobl) = (0, 0, 0)
- if not self.dispatch.stepInSkipList("bootloader"):
- newbl = 1
- elif self.dispatch.stepInSkipList("instbootloader"):
+ (update, nobl) = (0, 0)
+ if self.dispatch.stepInSkipList("instbootloader"):
nobl = 1
- else:
- if newToLibata or self.type is None or self.bootDev is None:
- newbl = 1
- else:
- update = 1
+ elif not (newToLibata or self.type is None or self.bootDev is None):
+ update = 1
if newToLibata or self.type is None or self.bootDev is None:
if newToLibata:
@@ -128,9 +123,6 @@ class UpgradeBootloaderWindow:
self.nobl_radio = blradio.add(_("Skip boot loader updating"),
"nobl", nobl)
- self.newbl_radio = blradio.add(_("Create new boot loader "
- "configuration"),
- "newbl", newbl)
buttons = ButtonBar(screen, [TEXT_OK_BUTTON, TEXT_BACK_BUTTON])
@@ -140,8 +132,7 @@ class UpgradeBootloaderWindow:
grid.add(t, 0, 0, (0,0,0,1))
grid.add(self.update_radio, 0, 1, (0,0,0,0))
grid.add(self.nobl_radio, 0, 2, (0,0,0,0))
- grid.add(self.newbl_radio, 0, 3, (0,0,0,1))
- grid.add(buttons, 0, 4, growx = 1)
+ grid.add(buttons, 0, 3, growx = 1)
while 1:
@@ -158,12 +149,6 @@ class UpgradeBootloaderWindow:
self.dispatch.skipStep("bootloader", skip = 1)
self.dispatch.skipStep("bootloaderadvanced", skip = 1)
self.dispatch.skipStep("instbootloader", skip = 1)
- elif blradio.getSelection() == "newbl":
- self.dispatch.skipStep("bootloadersetup", skip = 0)
- self.dispatch.skipStep("bootloader", skip = 0)
- self.dispatch.skipStep("bootloaderadvanced", skip = 0)
- self.dispatch.skipStep("instbootloader", skip = 0)
- self.bl.doUpgradeOnly = 0
else:
self.dispatch.skipStep("bootloadersetup", skip = 0)
self.dispatch.skipStep("bootloader", skip = 1)