Browse Source

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)
lilik-openwrt-22.03
Michal Vasilek 3 years ago
committed by Josef Schlehofer
parent
commit
6f606107e7
No known key found for this signature in database GPG Key ID: B950216FE4329F4C
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      utils/lxc/Makefile

+ 4
- 0
utils/lxc/Makefile View File

@ -177,6 +177,10 @@ define Package/lxc-auto/install
$(INSTALL_BIN) ./files/lxc-auto.init $(1)/etc/init.d/lxc-auto $(INSTALL_BIN) ./files/lxc-auto.init $(1)/etc/init.d/lxc-auto
endef endef
define Package/lxc-auto/postinst
[ "$${PKG_UPGRADE}" = "0" ] && /etc/init.d/lxc-auto boot
endef
define Package/lxc-common/conffiles define Package/lxc-common/conffiles
/etc/lxc/default.conf /etc/lxc/default.conf
/etc/lxc/lxc.conf /etc/lxc/lxc.conf


Loading…
Cancel
Save