From a1d3a5f317b5374f8ea5db9931312eefa0337eb9 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Fri, 9 Sep 2016 13:17:40 +0200 Subject: import-state: copy just some attributes --- systemd/rhel-import-state | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1