From 1594cab9f4b0ac50aba96da22c5ecfeb11af50ca Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Mon, 20 Nov 2023 18:34:40 +0530 Subject: [PATCH] use a +2MiB of extra space for the /boot partition --- create-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-image.sh b/create-image.sh index a475cb7..9572072 100755 --- a/create-image.sh +++ b/create-image.sh @@ -39,7 +39,7 @@ function create_new_image { LOOPBACK_02=$(losetup -f -P --show "${NEW_IMAGE_NAME}") # 1 MiB = 2048 * (1 block/sector (512 bytes)) UEFI_SECTORS="$(( $(fdisk -l "${LOOPBACK_01}" | grep "${LOOPBACK_01}p1" | awk '{print $4}') + 2048 ))" - BOOT_SECTORS="$(( $(fdisk -l "${LOOPBACK_01}" | grep "${LOOPBACK_01}p2" | awk '{print $4}') + 2048 ))" + BOOT_SECTORS="$(( $(fdisk -l "${LOOPBACK_01}" | grep "${LOOPBACK_01}p2" | awk '{print $4}') + 4096 ))" cat << EOF | fdisk "${LOOPBACK_02}" g