mirror of
https://github.com/AuxXxilium/arc.git
synced 2026-09-03 06:36:32 +08:00
grub: change image size to 1850MB (to match 2GB space device)
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user