initramfs-ostree: avoid using -z when rsync files locally
When copying file within the same machine with "rsync", avoid using "-z" to make it faster. Test Plan: Pass: build-pkgs -p initramfs-ostree Story: 2010643 Task: 47904 Change-Id: Icc65ccbff912c7321bf36bdf177ceb0614c94b11 Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
This commit is contained in:
parent
2b798e5e26
commit
98bf4d62e1
@ -31,7 +31,7 @@ index 0e5b8f3..ffc68a5 100644
|
||||
if [ -e /instboot${INSTL#/sysroot/boot/efi} ] ; then
|
||||
- lpull="--url file:///instboot${INSTL#/sysroot/boot/efi}"
|
||||
+ instl_name=$(basename ${INSTL#/sysroot/boot/efi})
|
||||
+ cmd="rsync -azr /instboot/${instl_name} /"
|
||||
+ cmd="rsync -ar /instboot/${instl_name} /"
|
||||
+ lpull="--url file:///${instl_name}"
|
||||
+ echo "The following rsync command can take a while, please be patient"
|
||||
+ echo running: $cmd
|
||||
|
Loading…
x
Reference in New Issue
Block a user