diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-05-07 01:33:37 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-05-07 01:33:37 +0000 |
commit | 69a13ddf79f1ed6c3f2ef8218a33a0259045811b (patch) | |
tree | 7b63f44e1f784f061f54d7ee350855bc6321b20b /bootloader.py | |
parent | 85dd1c94f7f6d2d303cf587501e4b5f8a353744b (diff) | |
download | anaconda-69a13ddf79f1ed6c3f2ef8218a33a0259045811b.tar.gz anaconda-69a13ddf79f1ed6c3f2ef8218a33a0259045811b.tar.xz anaconda-69a13ddf79f1ed6c3f2ef8218a33a0259045811b.zip |
if we can't find the default image, don't try to update the boot loader
config (#118300)
Diffstat (limited to 'bootloader.py')
-rw-r--r-- | bootloader.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bootloader.py b/bootloader.py index e044ac9a0..bab3291cf 100644 --- a/bootloader.py +++ b/bootloader.py @@ -112,6 +112,9 @@ def writeBootloader(intf, instRoot, fsset, bl, langs, comps): rootDev = fsset.getEntryByMountPoint('/').device.getDevice() defaultDev = bl.images.getDefault() + kernelLabel = None + kernelLongLabel = None + for (dev, (label, longlabel, type)) in bl.images.getImages().items(): if dev == rootDev: kernelLabel = label @@ -121,6 +124,9 @@ def writeBootloader(intf, instRoot, fsset, bl, langs, comps): else: otherList.append((label, longlabel, dev)) + if kernelLabel is None: + log("unable to find default image, bailing") + plainLabelUsed = 0 for (version, nick) in comps.kernelVersionList(): if plainLabelUsed: |