summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-16 19:48:02 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-16 19:48:02 +0000
commitc83979a70e617db41ee23d1bd9fa1b80e3e4e55d (patch)
tree3fc7a15bdd3f9dd5bd6d929c689c654778d838a9 /textw
parente0960f593a4158d36b60465fb30163035bb16dff (diff)
downloadanaconda-c83979a70e617db41ee23d1bd9fa1b80e3e4e55d.tar.gz
anaconda-c83979a70e617db41ee23d1bd9fa1b80e3e4e55d.tar.xz
anaconda-c83979a70e617db41ee23d1bd9fa1b80e3e4e55d.zip
add a button for lba32 mode with a warning if it's selected (14351)
Diffstat (limited to 'textw')
-rw-r--r--textw/bootloader_text.py37
1 files changed, 28 insertions, 9 deletions
diff --git a/textw/bootloader_text.py b/textw/bootloader_text.py
index 1ac9effb1..eb3cd1fa6 100644
--- a/textw/bootloader_text.py
+++ b/textw/bootloader_text.py
@@ -101,23 +101,42 @@ class BootloaderAppendWindow:
entry = Entry(48, scroll = 1, returnExit = 1)
entry.set(bl.args.get())
+ cb = Checkbox(_("Force use of LBA32 (not normally required)"))
+ if bl.forceLBA32:
+ cb.setValue("*")
+
buttons = ButtonBar(screen, [TEXT_OK_BUTTON, TEXT_BACK_BUTTON ] )
- grid = GridFormHelp(screen, _("Boot Loader Configuration"), "kernelopts", 1, 4)
+ grid = GridFormHelp(screen, _("Boot Loader Configuration"), "kernelopts", 1, 5)
grid.add(t, 0, 0, padding = (0, 0, 0, 1))
grid.add(entry, 0, 2, padding = (0, 0, 0, 1))
- grid.add(buttons, 0, 3, growx = 1)
+ grid.add(cb, 0, 3, padding = (0,0,0,1))
+ grid.add(buttons, 0, 4, growx = 1)
- result = grid.runOnce ()
- button = buttons.buttonPressed(result)
-
- if button == TEXT_BACK_CHECK:
- return INSTALL_BACK
+ while 1:
+ result = grid.run()
+ button = buttons.buttonPressed(result)
- bl.args.set(entry.value())
+ if button == TEXT_BACK_CHECK:
+ return INSTALL_BACK
- return INSTALL_OK
+ if cb.selected() and not bl.forceLBA32:
+ rc = dispatch.intf.messageWindow(_("Warning"),
+ _("Forcing the use of LBA32 for your bootloader when "
+ "not supported by the BIOS can cause your machine "
+ "to be unable to boot. We highly recommend you "
+ "create a boot disk.\n\n"
+ "Would you like to continue and force LBA32 mode?"),
+ type = "yesno")
+
+ if rc != 1:
+ continue
+
+ bl.args.set(entry.value())
+ bl.setForceLBA(cb.selected())
+
+ return INSTALL_OK
class BootloaderWindow:
def __call__(self, screen, dispatch, bl, fsset, diskSet):