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 <[email protected]> > --- > 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 (#9529): https://lists.yoctoproject.org/g/meta-virtualization/message/9529 Mute This Topic: https://lists.yoctoproject.org/mt/116608759/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
