From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: vudupa@qti.qualcomm.com
Cc: meta-virtualization@lists.yoctoproject.org, anuj.mittal@oss.qualcomm.com
Subject: Re: [meta-virtualization] [PATCH v2] lxc: delete empty lxc state directory
Date: Tue, 6 Jan 2026 14:43:57 -0500 [thread overview]
Message-ID: <aV1l/cWeoUGbLlFG@gmail.com> (raw)
In-Reply-To: <20251204064329.568898-1-vudupa@qti.qualcomm.com>
merged.
Bruce
In message: [meta-virtualization] [PATCH v2] lxc: delete empty lxc state directory
on 04/12/2025 Vishwas Udupa via lists.yoctoproject.org wrote:
> lxc systemd service [1] defines a StateDirectory to ensure that
> the /var/lib/lxc directory is automatically created and managed
> by systemd during service startup.
> Do not create lxc directory at build time for systemd.
>
> [1] https://github.com/lxc/lxc/blob/f9ff9ea2a92653a823edf25e8e28c9dab08b3090/config/init/systemd/lxc.service.in#L16
>
> Signed-off-by: Vishwas Udupa <vudupa@qti.qualcomm.com>
> ---
> recipes-containers/lxc/lxc_git.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-containers/lxc/lxc_git.bb b/recipes-containers/lxc/lxc_git.bb
> index d6f137d3..542134db 100644
> --- a/recipes-containers/lxc/lxc_git.bb
> +++ b/recipes-containers/lxc/lxc_git.bb
> @@ -141,7 +141,7 @@ do_install:append() {
>
> if "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}"; then
> # nothing special for systemd at the moment
> - true
> + (cd ${D}${localstatedir}; [ -d lib/lxc ] && rmdir -v --parents lib/lxc)
> else
> # with meson, these aren't built unless sysvinit is the enabled
> # init system.
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#9477): https://lists.yoctoproject.org/g/meta-virtualization/message/9477
> Mute This Topic: https://lists.yoctoproject.org/mt/116608759/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
prev parent reply other threads:[~2026-01-06 19:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-04 6:43 [PATCH v2] lxc: delete empty lxc state directory Vishwas Udupa
2025-12-22 6:18 ` Vishwas Udupa
2025-12-22 13:08 ` [meta-virtualization] " Bruce Ashfield
2026-01-06 19:43 ` Bruce Ashfield [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aV1l/cWeoUGbLlFG@gmail.com \
--to=bruce.ashfield@gmail.com \
--cc=anuj.mittal@oss.qualcomm.com \
--cc=meta-virtualization@lists.yoctoproject.org \
--cc=vudupa@qti.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox