container-bundle: CONTAINER_SERVICE_FILE silently dropped (do_unpack noexec)
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!
Quoted 12 lines · mark.yang via lists.yoctoproject.org
Hello!
On master there seems to be a contradiction between the
CONTAINER_SERVICE_FILEdocs anddo_unpackin 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"
Quoted 9 lines
But container-bundle.bbclass sets do_unpack[noexec] = "1", so the file:// is never unpacked into ${UNPACKDIR}. The
do_installloop 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?
I was placing the file through other means during development (explicitly in a
task) that didn't make it into the final classes / recipes.
I'm just finishing up some system testing on upgrades in master-next, I have a
fix and a new test for this that I'll push along with those changes.
Bruce
Quoted 14 lines
Thanks!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9849):
https://lists.yoctoproject.org/g/meta-virtualization/message/9849
Mute This Topic: https://lists.yoctoproject.org/mt/119641349/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II