summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-08-23 18:11:29 +0000
committerJeremy Katz <katzj@redhat.com>2001-08-23 18:11:29 +0000
commit0add1056cb2ca449a588abde3d4e1a676407bc3a (patch)
tree66c11847139aeac475cd4943fa8735a839e92b17 /bootloader.py
parent675a2d3e1a0e312497e59eb62e3db0a897084213 (diff)
downloadanaconda-0add1056cb2ca449a588abde3d4e1a676407bc3a.tar.gz
anaconda-0add1056cb2ca449a588abde3d4e1a676407bc3a.tar.xz
anaconda-0add1056cb2ca449a588abde3d4e1a676407bc3a.zip
use the same logic for if the default is in the chain list for grub as lilo; fixes 52269
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/bootloader.py b/bootloader.py
index 24d9539da..a3a2bcdf9 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -470,16 +470,9 @@ class x86BootloaderInfo(bootloaderInfo):
if defaultDev == rootDev:
default = 0
else:
- i = 0
- for (label, longlabel, version) in kernelList:
- i = i + 1
- for (label, longlabel, device) in chainList:
- if ((not longlabel) or (longlabel == "")):
- continue
- if defaultDev == device:
- default = i
- break
- i = i + 1
+ # if the default isn't linux, it's the first thing in the
+ # chain list
+ default = len(kernelList)
# keep track of which devices are used for the device.map
usedDevs = {}