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>
(cherry picked from commit 2cde10b950)
This commit is contained in:
Michal Vasilek 2022-04-08 22:49:53 +02:00 committed by Josef Schlehofer
parent 58a5dd8fd7
commit a44cb1e277
No known key found for this signature in database
GPG Key ID: B950216FE4329F4C
1 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=lxc
PKG_VERSION:=2.1.1
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_LICENSE:=LGPL-2.1-or-later BSD-2-Clause GPL-2.0
PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
@ -189,6 +189,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