2048 byte offset for compatibility

This commit is contained in:
Fierelier 2022-08-23 13:06:46 +02:00
parent 32a0c3ccc2
commit 5f42c5dafe

View File

@ -47,7 +47,7 @@ while true; do
# Create partitions # Create partitions
echo "Creating partitions ..." echo "Creating partitions ..."
wipefs --all "$DEVICE" wipefs --all "$DEVICE"
sgdisk -n 1::+1M -c 1:"BIOS boot partition" -t 1:ef02 "$DEVICE" sgdisk -n 1:2048:+1M -c 1:"BIOS boot partition" -t 1:ef02 "$DEVICE"
sgdisk -n 2::+250M -c 2:"EFI System" -t 2:ef00 "$DEVICE" sgdisk -n 2::+250M -c 2:"EFI System" -t 2:ef00 "$DEVICE"
sgdisk -n 3::-0 -c 3:"Linux filesystem" -t 3:8300 "$DEVICE" sgdisk -n 3::-0 -c 3:"Linux filesystem" -t 3:8300 "$DEVICE"
sgdisk --hybrid=1:2:3 "$DEVICE" sgdisk --hybrid=1:2:3 "$DEVICE"