Build: Fix build of grub image when choosing GPT scheme

This commit is contained in:
Liav A 2020-12-26 01:41:37 +02:00 committed by Andreas Kling
parent 43d833d94f
commit 0f208669af

View file

@ -63,7 +63,7 @@ if [ "$1" = "mbr" ]; then
partition_number="p1"
partition_scheme="mbr"
elif [ "$1" = "gpt" ]; then
parted -s "${dev}" mklabel gpt mkpart BIOSBOOT ext3 1MiB 8MiB mkpart OS ext2 8MiB 700MiB set 1 bios_grub || die "couldn't partition disk"
parted -s "${dev}" mklabel gpt mkpart BIOSBOOT ext3 1MiB 8MiB mkpart OS ext2 8MiB 290MiB set 1 bios_grub || die "couldn't partition disk"
partition_number="p2"
partition_scheme="gpt"
elif [ "$1" = "ebr" ]; then