aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2016-09-09 13:17:40 +0200
committerLukas Nykryn <lnykryn@redhat.com>2016-09-09 13:17:40 +0200
commita1d3a5f317b5374f8ea5db9931312eefa0337eb9 (patch)
tree2a0c87271879c6f1078434da851f9d5a52ed0dd6
parentcc304f05edab6c408a0f061eb1a104f9f06b8587 (diff)
downloadinitscripts-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-xsystemd/rhel-import-state2
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