I have the same problem with building an image with the model assert that worked previously.
error: invalid layout of volume "pi": cannot resolve content for structure #0 at index 0: cannot find "dtbs" in kernel info from "/tmp/tmpldy5e63i/unpack/kernel"
ERROR:ubuntu-image:COMMAND FAILED: snap prepare-image --customize=/tmp/tmpldy5e63i /customization ./model/composer-rpi.model /tmp/tmpldy5e63i/unpack
Thank you!
I’ve checked the pi gadget Github repo, and all required changes are already there. However, it seems that these changes are not on the stable channel yet.
And as far as I know, there is no way to switch to the edge channel for gadget snap in the UC18 model assertion.
Is there any info on when will it be available in stable, and how to build the image now?
You can download the snap from edge via UBUNTU_STORE_ARCH=arm64 snap download pi --channel=18-pi/edge --basename=pi-from-edge and then when building the image with ubuntu-image do ubuntu-image snap model --snap pi-from-edge.snap. That won’t set the tracking channel IIRC, but it will at least allow you to create the image
error: invalid layout of volume "pi": cannot resolve content for structure #0 at index 0: cannot find "dtbs" in kernel info from "/tmp/tmphe_t2rbj/unpack/kernel"
Are the names of your custom kernel / gadget snaps matching between what you put in the snapcraft.yaml/snap.yaml for the gadget and the model and same for the kernel?
I’m having the same issue on my device rpi with core18 based on pi-gadget, albeit when installing it on an existing device.
I can’t update the pi-kernel due to
Update assets from kernel "pi-kernel" (357)
2021-10-28T16:55:59+02:00 ERROR gadget does not consume any of the kernel assets needing synced update "dtbs"
And I can’t update the gadget due to
error: cannot perform the following tasks:
- Update assets from gadget "my-gadget" (unset) (cannot resolve content for structure #0 at index 0: cannot find "dtbs" in kernel info from "/snap/pi-kernel/326")
$ ls /snap/pi-kernel/current/dtbs/
bcm2708-rpi-b-plus.dtb bcm2708-rpi-zero-w.dtb bcm2710-rpi-2-b.dtb bcm2710-rpi-cm3.dtb ...