Skip to content

Commit 52d4f1d

Browse files
authored
Merge pull request #67 from Itxaka/gpt
2 parents e7bafb6 + a923f2e commit 52d4f1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools-image/build-arm-image.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ sgdisk -n 3:0:+$(( ${recovery_size} + ${oem_size} ))M -c 3:lvm -t 3:8e00 ${outpu
360360
fi
361361
sgdisk -n 4:0:+64M -c 4:persistent -t 4:8300 ${output_image}
362362

363-
sgdisk -m 1:2:3:4 ${output_image}
363+
# Make the disk GPT
364+
sgdisk -g ${output_image}
364365

365366
if [ "$model" == "rpi64" ]; then
366367
sfdisk --part-type ${output_image} 1 c
@@ -473,7 +474,7 @@ sync
473474
sleep 5
474475
sync
475476

476-
kpartx -dv $DRIVE || true
477+
kpartx -dvg $DRIVE || true
477478

478479
umount $DRIVE || true
479480

0 commit comments

Comments
 (0)