Skip to contentSkip to conversation

image-live.bbclass: make the INITRD optional

PATCH New Christopher Larson 1 participant 1 message May 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image-live.bbclass: make the INITRD optional

From: Christopher Larson <[email protected]>

This aligns with image-vm, and makes sense for wic bootimg-efi images, which don't actually want any of the live installer bits.

---
 meta/classes/image-live.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image-live.bbclass +1 -1
index c8a8610..ea6ced2 100644
@@ -56,7 +56,7 @@ python() {
     if image_b == initrd_i:
         bb.error('INITRD_IMAGE_LIVE %s cannot use image live, hddimg or iso.' % initrd_i)
         bb.fatal('Check IMAGE_FSTYPES and INITRAMFS_FSTYPES settings.')
-    else:
+    elif initrd_i:
         d.appendVarFlag('do_bootimg', 'depends', ' %s:do_image_complete' % initrd_i)
 }
 
Signature · 1 line
2.8.0