Add an extra 1024 bytes to IMGs

This commit is contained in:
Ward from fusion-voyager-3 2024-08-11 02:07:14 +03:00
parent 0eac2bc67e
commit a6df42e9ef
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
9
10

View File

@ -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"