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 2cde10b950
reverted in 039912dec5

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
This commit is contained in:
Michal Vasilek 2022-06-08 14:48:22 +02:00 committed by Josef Schlehofer
parent 3617cb311a
commit 7da7356539
1 changed files with 4 additions and 0 deletions

View File

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