Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84C2DCD6E4A for ; Thu, 4 Jun 2026 04:59:55 +0000 (UTC) Subject: [Question] container-bundle: CONTAINER_SERVICE_FILE silently dropped (do_unpack noexec) To: meta-virtualization@lists.yoctoproject.org From: "mark.yang" X-Originating-Location: Nowon-gu, Seoul, KR (27.122.242.71) X-Originating-Platform: Windows Chrome 148 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 03 Jun 2026 21:59:45 -0700 Message-ID: Content-Type: multipart/alternative; boundary="6I76ssl36Xoqd0jlQWmv" List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 04 Jun 2026 04:59:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-virtualization/message/9849 --6I76ssl36Xoqd0jlQWmv Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 =3D "file://myapp.service" CONTAINER_SERVICE_FILE[myapp-container] =3D "${UNPACKDIR}/myapp.service" But container-bundle.bbclass sets do_unpack[noexec] =3D "1", so the file:// is never unpacked into ${UNPACKDIR}. The do_install loop that copie= s custom services then fails its "[ ! -f $service_file ]" check, skips silent= ly, and the bundle ends up with an empty container-bundles//services/. ..Or have I misunderstood how this is meant to be used? Thanks! --6I76ssl36Xoqd0jlQWmv Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hello!

On master there seems to be a contradiction between = the
CONTAINER_SERVICE_FILE docs and do_unpack in container-bundle.bbcl= ass.

The custom-service docs (bbclass header and docs/container-= bundling.md) say to
ship the unit like this:

    = SRC_URI =3D "file://myapp.service"
    CONTAINER_SERVICE_FIL= E[myapp-container] =3D "${UNPACKDIR}/myapp.service"

But containe= r-bundle.bbclass sets do_unpack[noexec] =3D "1", so the
file:// is nev= er 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>/se= rvices/.

..Or have I misunderstood how this is meant to be used?=

Thanks!
--6I76ssl36Xoqd0jlQWmv--