From 73a72774cd920e3ff28878415285653913481c81 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Mon, 29 Jul 2024 23:09:50 +0200 Subject: [PATCH] update: fix fullupgrade for "s" version Signed-off-by: AuxXxilium --- files/initrd/opt/arc/include/update.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/initrd/opt/arc/include/update.sh b/files/initrd/opt/arc/include/update.sh index 3c35bc38..1663fd65 100755 --- a/files/initrd/opt/arc/include/update.sh +++ b/files/initrd/opt/arc/include/update.sh @@ -74,7 +74,11 @@ function upgradeLoader () { echo "Installing new Loader Image..." # Process complete update umount "${PART1_PATH}" "${PART2_PATH}" "${PART3_PATH}" - dd if="${TMP_PATH}/arc.img" of=$(blkid | grep 'LABEL="ARC3"' | cut -d3 -f1) bs=1M conv=fsync + if [ -n "${ARCBRANCH}" ]; then + dd if="${TMP_PATH}/arc-${ARCBRANCH}.img" of=$(blkid | grep 'LABEL="ARC3"' | cut -d3 -f1) bs=1M conv=fsync + else + dd if="${TMP_PATH}/arc.img" of=$(blkid | grep 'LABEL="ARC3"' | cut -d3 -f1) bs=1M conv=fsync + fi # Ask for Boot rm -f "${TMP_PATH}/arc.img" >/dev/null echo "Upgrade done! -> Rebooting..."