Do not create an initrd image
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 25 Sep 2014 10:24:19 +0000 (12:24 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 16 Oct 2014 08:47:44 +0000 (10:47 +0200)
Change-Id: I43500f6961c6fd8639114f8911b3f7ad5ddf74ae
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
classes/metatizen.bbclass

index 36b1e84..9ca3d4f 100644 (file)
@@ -3,10 +3,13 @@ python () {
         rootfsdepends = d.getVarFlag("do_rootfs", "depends", True)
         rootfsdepends = rootfsdepends.replace("rpmresolve-native:do_populate_sysroot", "")
         d.setVarFlag("do_rootfs", "depends", rootfsdepends)
+
     if bb.data.inherits_class('image-live', d):
         bootimgdepends = d.getVarFlag("do_bootimg", "depends", True)
         bootimgdepends = bootimgdepends.replace(d.expand("${INITRD_IMAGE}:do_rootfs"), "")
         d.setVarFlag("do_bootimg", "depends", bootimgdepends)
+        d.setVar("INITRD_IMAGE", "")
+        d.setVar("INITRD", "")
 }
 
 DIRFILES = "1"