core-image-minimal-initramfs: set QB_DEFAULT_FSTYPE
cover core-image-minimal-initramfs: set QB_DEFAULT_FSTYPE
Hi,
This is a RFC patch, my concern is that QB_DEFAULT_FSTYPE is only used for qemu boot, it is harmless for non qemu machines, so I assume that it is OK to set it in the image recipe.
There are also other image recipes have the similar issues:
WARNING: meta/recipes-core/images/core-image-minimal-initramfs.bb: QB_DEFAULT_FSTYPE 'ext4' is not in IMAGE_FSTYPES 'cpio.gz'.
WARNING: meta/recipes-extended/images/core-image-testmaster-initramfs.bb: QB_DEFAULT_FSTYPE 'ext4' is not in IMAGE_FSTYPES 'cpio.gz'.
WARNING: meta-selftest/recipes-test/images/wic-image-minimal.bb: QB_DEFAULT_FSTYPE 'ext4' is not in IMAGE_FSTYPES 'wic'.
WARNING: meta/recipes-core/images/core-image-tiny-initramfs.bb: QB_DEFAULT_FSTYPE 'ext4' is not in IMAGE_FSTYPES 'cpio.gz wic'.
WARNING: meta/recipes-core/images/build-appliance-image_15.0.0.bb: QB_DEFAULT_FSTYPE 'ext4' is not in IMAGE_FSTYPES 'vmdk'.
I added the WARNING locally to do the checking. I will fix others if this patch is fine.
BTW, I'm working runqemu testcases (oe-selftest -r runqemu) recently, please feel free to give your comments on what should be tested.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10249
// Robert
The following changes since commit 65cfc8aca3ff7e39453977a0215a350d13cb85ef:
libva: Find the correct wayland-scanner (2017-02-23 12:29:21 -0800)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/qb
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/qb
Robert Yang (1):
core-image-minimal-initramfs: set QB_DEFAULT_FSTYPE
meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 ++ 1 file changed, 2 insertions(+)
Signature · 1 line
2.10.2
RFC PATCH 1/1 core-image-minimal-initramfs: set QB_DEFAULT_FSTYPE
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.
--- meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-core/images/core-image-minimal-initramfs.bb +2 -0
@@ -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"
Signature · 1 line
2.10.2