Hi all,
I’m running into a problem while building a Yocto image with Mender. My goal is to include the mender-full
integration for automated partition and update handling, and also have the mender
CLI available on the device so I can run commands like mender --version
.
Here’s the issue:
- When I include the following line in my
local.conf
:
INHERIT += "mender-full"
- And try to add
mender
explicitly to my image:
IMAGE_INSTALL:append = " mender"
The build fails with the following error:
ERROR: core-image-minimal-1.0-r0 do_rootfs: Unable to install packages. Command '/workdir/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/bin/opkg ... install ca-certificates hellocustom helloworld htop mender mender-artifact-info mender-keys packagegroup-core-boot packagegroup-core-ssh-openssh rollback-test run-postinsts vim' returned 255:
* opkg_solver_install: No candidates to install mender (null)!
* opkg_finalize_intercepts: Failed to open dir /workdir/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0/temp/ipktemp//opkg-ClQyck/opkg-intercept-fNgijC: No such file or directory.
* rm_r: Failed to open dir /workdir/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0/temp/ipktemp//opkg-ClQyck/opkg-intercept-fNgijC: No such file or directory.
ERROR: Logfile of failure stored in: /workdir/build/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0/temp/log.do_rootfs.370110
ERROR: Task (/workdir/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs) failed with exit code '1'
- If I remove the
INHERIT += "mender-full"
line, the build succeeds andmender
can be installed. But then I lose the full Mender integration features (mender-full
) that are required for automated partitioning and update handling.
On the device, when mender-full
is included without explicitly adding mender
, the CLI and service are missing:
root@qemuarm64:/# which mender
root@qemuarm64:/# mender --version
-sh: mender: not found
root@qemuarm64:/# systemctl status mender
Unit mender.service could not be found.
root@qemuarm64:/# systemctl start mender
Failed to start mender.service: Unit mender.service not found.
root@qemuarm64:/# systemctl enable mender
Failed to enable unit: Unit file mender.service does not exist.
root@qemuarm64:/# journalctl -u mender
-- No entries --
My Goal
- Keep
mender-full
in the image to enable automated partitioning and rollback features. - Be able to use
mender
commands on the device (mender --version
,mender daemon
, etc.).
Has anyone encountered this issue or can suggest a proper way to include both mender-full
and the mender
CLI in a Yocto image without causing the package installation failure?
Thanks in advance for any help!
Stan