From af27e7654052bf3b9b15e091d23edb9293da98e0 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Wed, 8 Jun 2022 14:48:22 +0200 Subject: [PATCH] lxc: export systemd cgroups after install otherwise, a user would have to either manually run /etc/init.d/lxc-auto boot or reboot the system to start using lxc. originally committed in 2cde10b95053bf958a4001fb0a82c4563bf345e2 reverted in 039912dec5d3ba2b0f6f53ab8330ab9fea2f7adf Signed-off-by: Michal Vasilek (cherry picked from commit 7da73565399f915f516c6cdd74a58f984d519e4b) (cherry picked from commit 345ae974bcd7ef27cfdfb7c7bf55a0241ea482de) --- utils/lxc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/lxc/Makefile b/utils/lxc/Makefile index c09b5a6053..4edd54c032 100644 --- a/utils/lxc/Makefile +++ b/utils/lxc/Makefile @@ -61,6 +61,10 @@ define Package/lxc-auto DEPENDS+=+lxc-start +lxc-stop endef +define Package/lxc-auto/postinst +[ -n "$${IPKG_INSTROOT}" ] || [ "$${PKG_UPGRADE}" = 1 ] || /etc/init.d/lxc-auto boot +endef + define Package/lxc-auto/description LXC is the userspace control package for Linux Containers, a lightweight virtual system mechanism sometimes described as "chroot on steroids". -- 2.30.2