diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-07-19 03:13:12 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-07-19 03:13:12 +0000 |
commit | aeb00e1cbbbb09d2d6cafb18161ca03b868f6748 (patch) | |
tree | 6ab21ab060cd356e505eb019da37187d99ed5075 /textw | |
parent | 252e85f7d0beb4241c345462f1a4a8538a42a9b6 (diff) | |
download | anaconda-aeb00e1cbbbb09d2d6cafb18161ca03b868f6748.tar.gz anaconda-aeb00e1cbbbb09d2d6cafb18161ca03b868f6748.tar.xz anaconda-aeb00e1cbbbb09d2d6cafb18161ca03b868f6748.zip |
fix things so that the bootloader goes where you think it will in text mode. should fix a few bugs
Diffstat (limited to 'textw')
-rw-r--r-- | textw/bootloader_text.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/textw/bootloader_text.py b/textw/bootloader_text.py index 83939153e..3fe3aa1d3 100644 --- a/textw/bootloader_text.py +++ b/textw/bootloader_text.py @@ -15,6 +15,7 @@ from snack import * from constants_text import * from rhpl.translate import _ from flags import flags +from rhpl.log import log import string import iutil # XXX @@ -162,6 +163,7 @@ class BootloaderLocationWindow: format = "/dev/%-11s %s" locations = [] + devices = [] default = 0 keys = choices.keys() @@ -170,7 +172,8 @@ class BootloaderLocationWindow: (device, desc) = choices[key] if device == bl.getDevice(): default = len(locations) - locations.append (format % (device, _(desc))) + locations.append (format % (device, _(desc))) + devices.append(device) (rc, sel) = ListboxChoiceWindow (screen, _("Boot Loader Configuration"), _("Where do you want to install the boot loader?"), @@ -181,8 +184,7 @@ class BootloaderLocationWindow: if rc == TEXT_BACK_CHECK: return INSTALL_BACK - # XXX this is obviously not right :) - bl.setDevice(choices[choices.keys()[0]][0]) + bl.setDevice(devices[sel]) return INSTALL_OK |