summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: