Snapd yocto build issue

ERROR: snapd-demo-image-1.0-r0 do_rootfs: Unable to install packages. Command ’

yocto-chromium/build-wayland/tmp/work/imx8mp_lpddr4_evk-poky-linux/snapd-demo-image/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --allow-downgrades --allow-remove-essential --allow-change-held-packages --allow-unauthenticated --no-remove apt bash connman dpkg jailhouse packagegroup-core-boot packagegroup-fsl-optee-imx packagegroup-snapd rpm run-postinsts snapd’ returned 100: Reading package lists… Building dependency tree… Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: snapd : Depends: kernel-module-squashfs but it is not installable E: Unable to correct problems, you have held broken packages.

ERROR: Logfile of failure stored in: yocto-chromium/build-wayland/tmp/work/imx8mp_lpddr4_evk-poky-linux/snapd-demo-image/1.0-r0/temp/log.do_rootfs.2421792 ERROR: Task (yocto-chromium/sources/poky/meta-snapd/recipes-core/images/ failed with exit code ‘1’

Hey, would you mind sharing your build config, along with the layers and your conf/local.conf files?

The linux-yocto kernel contains squashfs packaged as a module. You we’re welcome to:

RDEPENDS:snapd:remove = "kernel-module-squashfs"

in a bbappend.

@zyga maybe we should have a per distro append in our layer i.e:

RDEPENDS:append:poky = " kernel-module-squashfs"

Assuming folks care enough to use a different distro than poky for their custom builds.

I have a feeling that append is no longer relevant. Do we even have it in master?

EDIT: yeah, it seems we do

It’s here:

@mborzecki1 I think this is a good idea. I don’t have that much experience with using other Yocto distros yet. Is there something we could CI easily?

Nothing to do besides using the append with distro override.

I’ve proposed