From: Michal Vasilek Date: Fri, 8 Apr 2022 20:49:53 +0000 (+0200) Subject: lxc: export systemd cgroups after install X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=2cde10b95053bf958a4001fb0a82c4563bf345e2;p=openwrt-packages.git 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 --- diff --git a/utils/lxc/Makefile b/utils/lxc/Makefile index 19fd00f5e..4a22d56aa 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