aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsystemd/rhel-import-state2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/rhel-import-state b/systemd/rhel-import-state
index 4f2d283b..fddb5711 100755
--- a/systemd/rhel-import-state
+++ b/systemd/rhel-import-state
@@ -6,6 +6,6 @@ cd /run/initramfs/state
find . -mindepth 1 -maxdepth 1 -exec cp -av -t / {} \;
# run restorecon on the copied files
-if [ -e /sys/fs/selinux/enforce ]; then
+if [ -e /sys/fs/selinux/enforce -a -x /usr/sbin/restorecon ]; then
find . -mindepth 1 -print0 | { cd / && xargs --null restorecon -i; }
fi