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:13 -0500
commit03fe48aa5c72877a1d2cf8cd07be09f692aca22a (patch)
treeb00b844ece829a17bfda8ddf63a24f37493f5dbb /recipes-containers
parent9d98a3a8e96d4dedcd96efd3e6f09c462d37754e (diff)
downloadmeta-virtualization-03fe48aa5c72877a1d2cf8cd07be09f692aca22a.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.