diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2016-09-09 13:17:40 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2016-09-09 13:17:40 +0200 |
commit | a1d3a5f317b5374f8ea5db9931312eefa0337eb9 (patch) | |
tree | 2a0c87271879c6f1078434da851f9d5a52ed0dd6 | |
parent | cc304f05edab6c408a0f061eb1a104f9f06b8587 (diff) | |
download | initscripts-a1d3a5f317b5374f8ea5db9931312eefa0337eb9.tar initscripts-a1d3a5f317b5374f8ea5db9931312eefa0337eb9.tar.gz initscripts-a1d3a5f317b5374f8ea5db9931312eefa0337eb9.tar.bz2 initscripts-a1d3a5f317b5374f8ea5db9931312eefa0337eb9.tar.xz initscripts-a1d3a5f317b5374f8ea5db9931312eefa0337eb9.zip |
import-state: copy just some attributes
-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 9ac9c380..a3c429d0 100755 --- a/systemd/rhel-import-state +++ b/systemd/rhel-import-state @@ -3,7 +3,7 @@ # copy state into root cd /run/initramfs/state -find . -mindepth 1 -maxdepth 1 -exec cp -av -t / {} \; +find . -mindepth 1 -maxdepth 1 -exec cp -v -t -R --preserve=mode,ownership,timestamps,links / {} \; # run restorecon on the copied files if [ -e /sys/fs/selinux/enforce -a -x /usr/sbin/restorecon ]; then |