summaryrefslogtreecommitdiffstats
path: root/recipes-containers
diff options
context:
space:
mode:
authorVishwas Udupa <vudupa@qti.qualcomm.com>2025-12-04 12:13:29 +0530
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-01-06 14:43:25 -0500
commit38ab2dac72039e0f0988761961dc0649926bb87c (patch)
treefb432d079cf9d484369bdd0252edce211ce3449a /recipes-containers
parent6a8d17e392c19bc5605d70a6dc972db0259281e7 (diff)
downloadmeta-virtualization-38ab2dac72039e0f0988761961dc0649926bb87c.tar.gz
lxc: delete empty lxc state directory
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> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers')
-rw-r--r--recipes-containers/lxc/lxc_git.bb2
1 files changed, 1 insertions, 1 deletions
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() {
141 141
142 if "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}"; then 142 if "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}"; then
143 # nothing special for systemd at the moment 143 # nothing special for systemd at the moment
144 true 144 (cd ${D}${localstatedir}; [ -d lib/lxc ] && rmdir -v --parents lib/lxc)
145 else 145 else
146 # with meson, these aren't built unless sysvinit is the enabled 146 # with meson, these aren't built unless sysvinit is the enabled
147 # init system. 147 # init system.