grub: change image size to 1850MB (to match 2GB space device)

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2025-07-06 21:28:19 +02:00
parent df87635ea2
commit 00409cfa9f
2 changed files with 6 additions and 6 deletions

View File

@@ -134,10 +134,10 @@ jobs:
sudo losetup --detach ${LOOPX}
echo "Resize Image File"
mv -f "${IMAGE_FILE}" "${IMAGE_FILE}.tmp"
resizeImg "${IMAGE_FILE}.tmp" "+1024M" "${IMAGE_FILE}"
rm -f "${IMAGE_FILE}.tmp"
# echo "Resize Image File"
# mv -f "${IMAGE_FILE}" "${IMAGE_FILE}.tmp"
# resizeImg "${IMAGE_FILE}.tmp" "+1024M" "${IMAGE_FILE}"
# rm -f "${IMAGE_FILE}.tmp"
echo "Image Converter"
qemu-img convert -p -f raw -O vmdk ${IMAGE_FILE} arc-dyn.vmdk

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium> and Ing <https://github.com/wjz304>
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
@@ -29,7 +29,7 @@ done
popd
rm -f grub.img
dd if=/dev/zero of=grub.img bs=1M seek=1024 count=0
dd if=/dev/zero of=grub.img bs=1M seek=1850 count=0
echo -e "n\np\n1\n\n+50M\nn\np\n2\n\n+50M\nn\np\n3\n\n\na\n1\nw\nq\n" | fdisk grub.img
fdisk -l grub.img