[Question] container-bundle: CONTAINER_SERVICE_FILE silently dropped (do_unpack noexec)
"mark.yang" <[email protected]> Wed, 03 Jun 2026 21:59:45 -0700
| Newsgroups | org.yoctoproject.lists.meta-virtualization |
|---|---|
| Message-ID | <[email protected]> |
Hello!
On master there seems to be a contradiction between the
CONTAINER_SERVICE_FILE docs and do_unpack in container-bundle.bbclass.
The custom-service docs (bbclass header and docs/container-bundling.md) say to
ship the unit like this:
SRC_URI = "file://myapp.service"
CONTAINER_SERVICE_FILE[myapp-container] = "${UNPACKDIR}/myapp.service"
But container-bundle.bbclass sets do_unpack[noexec] = "1", so the
file:// is never unpacked into ${UNPACKDIR}. The do_install loop that copies
custom services then fails its "[ ! -f $service_file ]" check, skips silently,
and the bundle ends up with an empty container-bundles/<runtime>/services/.
..Or have I misunderstood how this is meant to be used?
Thanks!