aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-06-23 11:55:46 +0200
committerLukas Nykryn <lnykryn@redhat.com>2015-06-23 11:55:46 +0200
commitc6e94db97c7c188d2f3628879661105368b6f2c1 (patch)
tree55766f159c0c7c6cbad060de1d8c895019a0a430 /systemd
parenta1359b99cb5559c285c4eab5423b37f148af1e18 (diff)
downloadinitscripts-c6e94db97c7c188d2f3628879661105368b6f2c1.tar
initscripts-c6e94db97c7c188d2f3628879661105368b6f2c1.tar.gz
initscripts-c6e94db97c7c188d2f3628879661105368b6f2c1.tar.bz2
initscripts-c6e94db97c7c188d2f3628879661105368b6f2c1.tar.xz
initscripts-c6e94db97c7c188d2f3628879661105368b6f2c1.zip
import-state: don't run restorecon when it does not exist
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/fedora-import-state2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/fedora-import-state b/systemd/fedora-import-state
index 7809ca81..07fd5cad 100755
--- a/systemd/fedora-import-state
+++ b/systemd/fedora-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