Just wanted to provide an update if anyone stumbles on this in the future. This 
is more or less what I've done to get it working. I created a recipe called 
core-image-minimal-disk-image_1.0.bb. The contents of that recipe is below:

SUMMARY = "Installs the disk image generated from core-image-minimal"
LICENSE = "CLOSED"
SRC_URI = ""

DEPENDS += "core-image-minimal"

do_install () {
   install -d ${D}/usr/share/vm
   cp ${DEPLOY_DIR_IMAGE}/core-image-minimal-latest.ext4 
${D}/usr/share/vm/rootfs.raw || \
       bbnote "Guest image not found. Make sure core-image-minimal is built."
}

FILES:${PN} += "/usr/share/vm/rootfs.raw"

The only other "extra" thing was I had to add a core-image-minimal.bbappend 
that added IMAGE_FSTYPES:append = " ext4" and IMAGE_LINK_NAME = "${PN}-latest".

I am still trying to improve it in 2 key ways:

* I would really love it if the rootfs.raw was just included as a partition on 
the final disk image. That way I could grow it with systemd-growfs or similar.
* Currently it is using the same machine, and thus the same, kernel as the host 
OS. Not a deal breaker but not ideal.

I do not think this is "right", or maybe it is, either way I'm still open to 
further constructive criticism.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64896): https://lists.yoctoproject.org/g/yocto/message/64896
Mute This Topic: https://lists.yoctoproject.org/mt/111407542/21656
Mute #qemu:https://lists.yoctoproject.org/g/yocto/mutehashtag/qemu
Mute #qemux86-64:https://lists.yoctoproject.org/g/yocto/mutehashtag/qemux86-64
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to