base-files: simplify restorecon logic
authorDaniel Golle <daniel@makrotopia.org>
Mon, 2 May 2022 20:07:16 +0000 (21:07 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 3 May 2022 19:32:48 +0000 (20:32 +0100)
commit0dc3ecf0da1c609b44a180555a0aac40bea79c7b
treea768ce08608c575d13be32590659c7aa9073d668
parentefc38b315e9bd59ab69ca212b7e444d4537260cc
base-files: simplify restorecon logic

Remove forgotten redundant selinuxenabled call and skip the whole
thing in case $IPKG_INSTROOT is set as labels are anyway applied only
later on in fakeroot when squashfs is created.

Fixes: 6d7272852e ("base-files: add missing $IPKG_INSTROOT to restorecon call")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 7b07c3cff57f057d6780d34adeb23c06123732db)
package/base-files/files/lib/functions.sh