mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-07-05 19:26:20 +00:00
Really make it gpt
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
parent
6b69df91a5
commit
a923f2e558
@ -360,7 +360,8 @@ sgdisk -n 3:0:+$(( ${recovery_size} + ${oem_size} ))M -c 3:lvm -t 3:8e00 ${outpu
|
|||||||
fi
|
fi
|
||||||
sgdisk -n 4:0:+64M -c 4:persistent -t 4:8300 ${output_image}
|
sgdisk -n 4:0:+64M -c 4:persistent -t 4:8300 ${output_image}
|
||||||
|
|
||||||
sgdisk -m 1:2:3:4 ${output_image}
|
# Make the disk GPT
|
||||||
|
sgdisk -g ${output_image}
|
||||||
|
|
||||||
if [ "$model" == "rpi64" ]; then
|
if [ "$model" == "rpi64" ]; then
|
||||||
sfdisk --part-type ${output_image} 1 c
|
sfdisk --part-type ${output_image} 1 c
|
||||||
@ -473,7 +474,7 @@ sync
|
|||||||
sleep 5
|
sleep 5
|
||||||
sync
|
sync
|
||||||
|
|
||||||
kpartx -dv $DRIVE || true
|
kpartx -dvg $DRIVE || true
|
||||||
|
|
||||||
umount $DRIVE || true
|
umount $DRIVE || true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user