[OE-core] [RFC PATCH 1/1] core-image-minimal-initramfs: set QB_DEFAULT_FSTYPE

Robert Yang liezhi.yang at windriver.com
Fri Feb 24 09:47:45 UTC 2017


Fixed:
MACHINE = "qemux86"
$ bitbake core-image-minimal-initramfs
$ runqemu qemux86 nographic
[snip]
Exception: Failed to find rootfs: tmp/deploy/images/qemux86/core-image-minimal-initramfs-qemux86-20170224082533*.ext4 or tmp/deploy/images/qemux86/core-image-minimal-initramfs-qemux86*.ext4
[snip]

This is because core-image-minimal-initramfs doesn't generate ext4 image which
is the default value or QB_DEFAULT_FSTYPE, it only generates cpio.gz.

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
 meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb b/meta/recipes-core/images/core-image-minimal-initramfs.bb
index 5794a25..1ea3490 100644
--- a/meta/recipes-core/images/core-image-minimal-initramfs.bb
+++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb
@@ -16,6 +16,8 @@ LICENSE = "MIT"
 IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
 inherit core-image
 
+QB_DEFAULT_FSTYPE = "cpio.gz"
+
 IMAGE_ROOTFS_SIZE = "8192"
 IMAGE_ROOTFS_EXTRA_SPACE = "0"
 
-- 
2.10.2




More information about the Openembedded-core mailing list