mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-08-27 03:48:56 +00:00
parent
e5f563c4db
commit
a2b1ee4536
@ -345,8 +345,6 @@ 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
|
||||
@ -382,7 +380,7 @@ export device="/dev/mapper/${device}"
|
||||
|
||||
partprobe
|
||||
|
||||
kpartx -vag $DRIVE
|
||||
kpartx -va $DRIVE
|
||||
|
||||
echo ">> Populating partitions"
|
||||
efi=${device}p1
|
||||
|
Loading…
Reference in New Issue
Block a user