Revert "lxc: export systemd cgroups after install"
authorStijn Tintel <stijn@linux-ipv6.be>
Wed, 18 May 2022 10:46:01 +0000 (13:46 +0300)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 24 Jun 2022 10:20:26 +0000 (12:20 +0200)
commit6c942ec7fb6fdb9eeab593106651c1b1498dfa5f
tree061650a9cb713cb650fb5627db64fbba7ba81526
parent345ae974bcd7ef27cfdfb7c7bf55a0241ea482de
Revert "lxc: export systemd cgroups after install"

The postinst script is sourced during image build, which causes the
follow failure:
/home/stijn/Development/OpenWrt/openwrt/build_dir/target-x86_64_musl/root-x86/etc/init.d/lxc-auto: line 3: /lib/functions.sh: No such file or directory
postinst script ./usr/lib/opkg/info/lxc-auto.postinst has failed with exit code 1

Sourcing /lib/functions.sh is not needed, as /etc/rc.common does so
already. Unfortunately removing that line from the init script is not
enough to fix the problem. The postinst script should also check
IPKG_INSTROOT. As these two changes are unrelated, they should go in
separate commits, and the solution to the image build problem is to
revert the commit that introduced the breakage.

This reverts commit 2cde10b95053bf958a4001fb0a82c4563bf345e2.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(cherry picked from commit 039912dec5d3ba2b0f6f53ab8330ab9fea2f7adf)
utils/lxc/Makefile