mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-06-28 16:07:12 +00:00
Merge pull request #66 from Itxaka/gpt
This commit is contained in:
commit
e7bafb6ae5
@ -345,6 +345,8 @@ partprobe
|
|||||||
|
|
||||||
echo ">> Writing image and partition table"
|
echo ">> Writing image and partition table"
|
||||||
dd if=/dev/zero of="${output_image}" bs=1024000 count="${size}" || exit 1
|
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
|
if [ "$model" == "rpi64" ]; then
|
||||||
sgdisk -n 1:8192:+96M -c 1:EFI -t 1:0c00 ${output_image}
|
sgdisk -n 1:8192:+96M -c 1:EFI -t 1:0c00 ${output_image}
|
||||||
else
|
else
|
||||||
@ -383,7 +385,7 @@ export device="/dev/mapper/${device}"
|
|||||||
|
|
||||||
partprobe
|
partprobe
|
||||||
|
|
||||||
kpartx -va $DRIVE
|
kpartx -vag $DRIVE
|
||||||
|
|
||||||
echo ">> Populating partitions"
|
echo ">> Populating partitions"
|
||||||
efi=${device}p1
|
efi=${device}p1
|
||||||
|
Loading…
Reference in New Issue
Block a user