This commit is contained in:
Pratham Patel 2023-10-17 10:17:42 +05:30
parent 3ef2b90cad
commit 6f29b638e9
No known key found for this signature in database

View File

@ -23,8 +23,8 @@ function create_new_image {
LOOPBACK_01=$(losetup -f -P --show "${IMAGE_NAME}")
LOOPBACK_02=$(losetup -f -P --show "${NEW_IMAGE_NAME}")
UEFI_SECTORS="$(fdisk -l "${LOOPBACK_02}" | grep "${LOOPBACK_02}p1" | awk '{print $4}')"
BOOT_SECTORS="$(fdisk -l "${LOOPBACK_02}" | grep "${LOOPBACK_02}p2" | awk '{print $4}')"
UEFI_SECTORS="$(fdisk -l "${LOOPBACK_01}" | grep "${LOOPBACK_01}p1" | awk '{print $4}')"
BOOT_SECTORS="$(fdisk -l "${LOOPBACK_01}" | grep "${LOOPBACK_01}p2" | awk '{print $4}')"
cat << EOF | fdisk "${LOOPBACK_02}"
g