arc: fix update loader

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-21 11:30:49 +02:00
parent b58cfa5ae1
commit 6faa0a6632

View File

@ -147,10 +147,10 @@ function updateLoader() {
echo "Download successful!"
unzip -oq "${TMP_PATH}/update.zip" -d "${TMP_PATH}"
echo "Installing new Loader Image..."
cp -f "${TMP_PATH}/grub.cfg" "${USER_GRUB_CONFIG}"
cp -f "${TMP_PATH}/bzImage-arc" "${ARC_BZIMAGE_FILE}"
cp -f "${TMP_PATH}/initrd-arc" "${ARC_RAMDISK_FILE}"
rm -f "${TMP_PATH}/grub.cfg" "${TMP_PATH}/bzImage-arc" "${TMP_PATH}/initrd-arc"
cp -f "${TMP_PATH}/files/p1/boot/boot/grub.cfg" "${USER_GRUB_CONFIG}"
cp -f "${TMP_PATH}/files/p1/ARC-VERSION" "${PART1_PATH}/ARC-VERSION"
cp -f "${TMP_PATH}/files/p3/bzImage-arc" "${ARC_BZIMAGE_FILE}"
cp -f "${TMP_PATH}/files/p3/initrd-arc" "${ARC_RAMDISK_FILE}"
rm -f "${TMP_PATH}/update.zip"
else
echo "Error getting new Version!"