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>
Mon, 2 May 2022 20:11:05 +0000 (21:11 +0100)
commit7b07c3cff57f057d6780d34adeb23c06123732db
tree824b91aed65793d3701eafc07e151f9be3320c60
parent43794570986e33770d9039399d16a665f6c7c495
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>
package/base-files/files/lib/functions.sh