summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-05-07 01:33:37 +0000
committerJeremy Katz <katzj@redhat.com>2004-05-07 01:33:37 +0000
commit69a13ddf79f1ed6c3f2ef8218a33a0259045811b (patch)
tree7b63f44e1f784f061f54d7ee350855bc6321b20b /bootloader.py
parent85dd1c94f7f6d2d303cf587501e4b5f8a353744b (diff)
downloadanaconda-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.py6
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: