Re: [meta-virtualization] [Question] container-bundle: CONTAINER_SERVICE_FILE silently dropped (do_unpack noexec)
Bruce Ashfield <[email protected]> Thu, 4 Jun 2026 08:52:23 -0400
| Newsgroups | org.yoctoproject.lists.meta-virtualization |
|---|---|
| Message-ID | <CADkTA4Nco-jJGC3TQOF+a=5MN7EioGAbDe=BTGaQZykDZsxgLA@mail.gmail.com> |
On Thu, Jun 4, 2026 at 12:59 AM mark.yang via lists.yoctoproject.org <[email protected]> wrote: > 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? > 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 > > 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]] > -=-=-=-=-=-=-=-=-=-=-=- > > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II