Use rsync for rp4 arm64 extraction

This commit is contained in:
Taylor Helsper 2021-10-04 19:14:45 -05:00
parent f310e23cf4
commit 0f2a2484bb
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ tar -xvf /opt/mynode_release_latest.tar.gz -C /opt/upgrade/
# Install files
VERSION=$(cat /opt/upgrade/out/rootfs_*/usr/share/mynode/version)
if [ $IS_X86 = 1 ]; then
if [ $IS_X86 = 1 ] || [ $IS_RASPI4_ARM64 = 1 ]; then
rsync -r -K /opt/upgrade/out/rootfs_${DEVICE_TYPE}/* / 2>&1
else
cp -rf /opt/upgrade/out/rootfs_${DEVICE_TYPE}/* / 2>&1

View File

@ -865,7 +865,7 @@ update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy || true
# Install files (downloaded and extracted earlier)
if [ $IS_X86 = 1 ] || [ $IS_RASPI4_ARM64 ]; then
if [ $IS_X86 = 1 ] || [ $IS_RASPI4_ARM64 = 1 ]; then
rsync -r -K /tmp/upgrade/out/rootfs_*/* /
else
cp -rf /tmp/upgrade/out/rootfs_*/* /