update: rework

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-21 12:43:32 +02:00
parent 2049102139
commit d513e63c59
2 changed files with 6 additions and 6 deletions

View File

@ -157,9 +157,9 @@ jobs:
echo "Create Arc ova"
convertova "arc.img" "arc.ova"
zip -9 update.zip "files/p3/bzImage-arc" "files/p3/initrd-arc" "files/p1/ARC-VERSION" "files/p1/boot/grub/grub.cfg"
# Zip update and generate checksum
zip -9j update.zip "files/p3/bzImage-arc" "files/p3/initrd-arc" "files/p1/ARC-VERSION" "files/p1/boot/grub/grub.cfg"
sha256sum update.zip >checksum.sha256
rm -f "files/p3/bzImage-arc" "files/p3/initrd-arc"
# Zip image and generate checksum
- name: Pack

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}/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}"
mv -f "${TMP_PATH}/grub.cfg" "${USER_GRUB_CONFIG}"
mv -f "${TMP_PATH}/ARC-VERSION" "${PART1_PATH}/ARC-VERSION"
mv -f "${TMP_PATH}/bzImage-arc" "${ARC_BZIMAGE_FILE}"
mv -f "${TMP_PATH}/initrd-arc" "${ARC_RAMDISK_FILE}"
rm -f "${TMP_PATH}/update.zip"
else
echo "Error getting new Version!"