rsync rootfs overlays instead of cp

This commit is contained in:
parazyd 2017-09-25 10:25:11 +02:00
parent 3ac9557b1a
commit f7c700e60a
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ blend_postinst() {
notice "copying rootfs overlays"
rootfs_overlay_path="$R/../rootfs-overlay"
sudo cp -ravf "${rootfs_overlay_path}/common/*" "${strapdir}/"
sudo rsync -raX "${rootfs_overlay_path}/common/" "${strapdir}"
if [[ -n "$vmsdk_version" ]]; then
_sdk="vm"
elif [[ -n "$armsdk_version" ]]; then
@ -52,7 +52,7 @@ blend_postinst() {
elif [[ -n "$livesdk_version" ]]; then
_sdk="live"
fi
sudo cp -ravf "${rootfs_overlay_path}/${_sdk}/*" "${strapdir}"
sudo rsync -raX "${rootfs_overlay_path}${_sdk}/" "${strapdir}"
blend_finalize || zerr
}