diff options
| author | Michal Vasilek <michal.vasilek@nic.cz> | 2022-06-08 14:48:22 +0200 |
|---|---|---|
| committer | Josef Schlehofer <pepe.schlehofer@gmail.com> | 2022-06-24 12:19:14 +0200 |
| commit | 70b0ff8a4844948b556be20bcb682eb320b66825 (patch) | |
| tree | 2569bfc527b987f9755e03a4d374ab0f28e5107d | |
| parent | f172d67c9663d6bc2a2d58dfbe664308f4c7b7c4 (diff) | |
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 <michal.vasilek@nic.cz>
(cherry picked from commit 7da73565399f915f516c6cdd74a58f984d519e4b)
| -rw-r--r-- | utils/lxc/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/lxc/Makefile b/utils/lxc/Makefile index 8cca78274..417a24f5b 100644 --- a/utils/lxc/Makefile +++ b/utils/lxc/Makefile @@ -59,6 +59,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". |
