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 <michal.vasilek@nic.cz>
This commit is contained in:
Michal Vasilek 2022-04-08 22:49:53 +02:00 committed by Rosen Penev
parent 659f87d5d4
commit 2cde10b950
1 changed files with 4 additions and 0 deletions

View File

@ -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