From 2cde10b95053bf958a4001fb0a82c4563bf345e2 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Fri, 8 Apr 2022 22:49:53 +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. Signed-off-by: Michal Vasilek --- utils/lxc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/lxc/Makefile b/utils/lxc/Makefile index 19fd00f5ec..4a22d56aa0 100644 --- a/utils/lxc/Makefile +++ b/utils/lxc/Makefile @@ -177,6 +177,10 @@ define Package/lxc-auto/install $(INSTALL_BIN) ./files/lxc-auto.init $(1)/etc/init.d/lxc-auto endef +define Package/lxc-auto/postinst +[ "$${PKG_UPGRADE}" = "0" ] && /etc/init.d/lxc-auto boot +endef + define Package/lxc-common/conffiles /etc/lxc/default.conf /etc/lxc/lxc.conf