From 4178b708369c6b476c8100f1b90ffceab8952f15 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Tue, 27 Apr 2021 22:22:02 -0500 Subject: [PATCH] Fix some issues with Raspi4 ARM64 upgrades --- rootfs/standard/usr/bin/mynode-local-upgrade | 2 +- rootfs/standard/usr/bin/mynode_upgrade.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode-local-upgrade b/rootfs/standard/usr/bin/mynode-local-upgrade index 2a64663a..d6e1358b 100755 --- a/rootfs/standard/usr/bin/mynode-local-upgrade +++ b/rootfs/standard/usr/bin/mynode-local-upgrade @@ -34,7 +34,7 @@ tar -xf /tmp/mynode_rootfs_${DEVICE_TYPE}.tar.gz -C /tmp/rootfs/ echo Done! # Install files -if [ $IS_X86 = 1 ]; then +if [ $IS_X86 = 1 ] || [ $IS_RASPI4_ARM64 = 1 ]; then rsync -r -K /tmp/rootfs/out/rootfs_${DEVICE_TYPE}/* / else cp -rf /tmp/rootfs/out/rootfs_${DEVICE_TYPE}/* / diff --git a/rootfs/standard/usr/bin/mynode_upgrade.sh b/rootfs/standard/usr/bin/mynode_upgrade.sh index 928ccf07..8c879d0a 100755 --- a/rootfs/standard/usr/bin/mynode_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_upgrade.sh @@ -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