Skip to content

Commit e7bafb6

Browse files
authored
Merge pull request #66 from Itxaka/gpt
2 parents b70b22b + 6b69df9 commit e7bafb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools-image/build-arm-image.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ partprobe
345345

346346
echo ">> Writing image and partition table"
347347
dd if=/dev/zero of="${output_image}" bs=1024000 count="${size}" || exit 1
348+
# make it gpt
349+
echo "label: gpt" | sfdisk "${output_image}"
348350
if [ "$model" == "rpi64" ]; then
349351
sgdisk -n 1:8192:+96M -c 1:EFI -t 1:0c00 ${output_image}
350352
else
@@ -383,7 +385,7 @@ export device="/dev/mapper/${device}"
383385

384386
partprobe
385387

386-
kpartx -va $DRIVE
388+
kpartx -vag $DRIVE
387389

388390
echo ">> Populating partitions"
389391
efi=${device}p1

0 commit comments

Comments
 (0)