From a6df42e9efbce5e3e6c8ca5ca5add4ca4b50085a Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Sun, 11 Aug 2024 02:07:14 +0300 Subject: [PATCH] Add an extra 1024 bytes to IMGs --- .github/release-nest-v3-nvidia-iso | 2 +- build.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/release-nest-v3-nvidia-iso b/.github/release-nest-v3-nvidia-iso index f11c82a..9a03714 100644 --- a/.github/release-nest-v3-nvidia-iso +++ b/.github/release-nest-v3-nvidia-iso @@ -1 +1 @@ -9 \ No newline at end of file +10 \ No newline at end of file diff --git a/build.sh b/build.sh index 2e1cdbb..49860bd 100755 --- a/build.sh +++ b/build.sh @@ -64,8 +64,8 @@ mkdir -p ./data/refind/EFI cp -vf "$ROOTFS_PATH/boot"/vmlinuz-"$ISO_KERNEL" "./data/refind/EFI/vmlinuz" cp -vf "$ROOTFS_PATH/boot"/initrd.img-"$ISO_KERNEL" "./data/refind/EFI/initrd" -REFIND_SIZE=$(du -s -B1 ./data/refind | cut -f1) -LIVE_SIZE=$(du -s -B1 $LIVE_BOOT_LIVE_PATH | cut -f1) +REFIND_SIZE=$(($(du -s -B1 ./data/refind | cut -f1) + 1024)) +LIVE_SIZE=$(($(du -s -B1 $LIVE_BOOT_LIVE_PATH | cut -f1) + 1024)) ISO_SIZE=$(($REFIND_SIZE + $LIVE_SIZE)) DD_BOOT_IMAGE="./efiboot.img" DD_LIVE_IMAGE="./live.img"