diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2015-06-23 11:55:46 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-06-23 12:14:38 +0200 |
commit | a9595cc65833b43a950c54494c9a0bb4645503a0 (patch) | |
tree | b54ec3c6c75462fb3dc9a254499aab9b1eb6e9c3 /systemd | |
parent | eb9e6b82ff7b0b7250a86efd63f76e5b6d632d0a (diff) | |
download | initscripts-a9595cc65833b43a950c54494c9a0bb4645503a0.tar initscripts-a9595cc65833b43a950c54494c9a0bb4645503a0.tar.gz initscripts-a9595cc65833b43a950c54494c9a0bb4645503a0.tar.bz2 initscripts-a9595cc65833b43a950c54494c9a0bb4645503a0.tar.xz initscripts-a9595cc65833b43a950c54494c9a0bb4645503a0.zip |
import-state: don't run restorecon when it does not exist
Diffstat (limited to 'systemd')
-rwxr-xr-x | systemd/rhel-import-state | 2 |
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 |