What happened to hddimg support in Dunfell? I used this image to boot off a USB drive and install onto my target’s SSD - grub would show an “install” option that will then write to MENDER_STORAGE_DEVICE (/dev/sda in my system). In Zeus, it was built along with uefiimg. This post seems to imply it was rolled into uefiimg and so I should write the uefiimg to my USB drive. But when I boot from USB, I don’t get a grub select screen, just “Welcome to GRUB! lock: OK lock: OK” and it tries to boot from the USB. Boot of course fails because doesn’t work because MENDER_STORAGE_DEVICE is pointing to /dev/sda and the USB drive is /dev/sdb. And if I do build with MENDER_STORAGE_DEVICE = "/dev/sdb" boot fails because the USB drive is read-only for some reason?
So, maybe I can just add IMAGE_FSTYPES_append = " hddimg" to local.conf? Nope, I get this error:
$ bitbake core-image-full-cmdline
ERROR: <>/poky_trunk/meta/recipes-core/images/core-image-minimal-initramfs.bb: INITRD_IMAGE_LIVE core-image-minimal-initramfs cannot use image live, hddimg or iso.
ERROR: <>/poky_trunk/meta/recipes-core/images/core-image-minimal-initramfs.bb: Check IMAGE_FSTYPES and INITRAMFS_FSTYPES settings.
ERROR: Failed to parse recipe: <>/poky_trunk/meta/recipes-core/images/core-image-minimal-initramfs.bb
Hi @skrawn that other post was misleading. When I said that HDDIMG included the UEFIIMG, what I meant was that the UEFIIMG file was stored inside the HDDIMG and the the installer from the HDDIMG would write the UEFIIMG to the hard drive. If you are trying to do that you still need the hddimg. I guess you’ll need to troubleshoot that error you posted. Evidently something changed, likely in poky, that we will need to address. Please let us know if you find anything.
But you already tried manually adding hddimg to IMAGE_FSTYPES right? There must be more to it.
Right, but the change in Poky is setting that way down in the x86-base.inc. I don’t pretend to know all the in-and-outs of how Bitbake establishes dependencies, but it is doing something that makes core-image-minimal-initramfs happy.
This change does have an impact to IMAGE_FSTYPES though:
Before (current poky):
I’m sorry, I spoke too soon. While the error does go away, the hddimg isn’t actually being created. I thought it was but that was from a previous build.
@drewmoseley I blindly followed your post the other day about IMAGE_INSTALL += " hddimg" when I think you meant to type IMAGE_FSTYPES += " hddimg" because that does work!