Skip to content

Commit

Permalink
Merge pull request #66 from Itxaka/gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Jul 12, 2023
2 parents b70b22b + 6b69df9 commit e7bafb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools-image/build-arm-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ partprobe

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

partprobe

kpartx -va $DRIVE
kpartx -vag $DRIVE

echo ">> Populating partitions"
efi=${device}p1
Expand Down

0 comments on commit e7bafb6

Please sign in to comment.