Skip to content

Commit

Permalink
bib: switch arch64 back from "gpt" to "dos" to unbreak pi3
Browse files Browse the repository at this point in the history
The raspberry pi3 does not support "gpt" partition tables. This
commit moves back to "dos" for maximum compatibility.
  • Loading branch information
mvo5 committed Aug 5, 2024
1 parent 3ce465d commit 4fba68f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bib/cmd/bootc-image-builder/partition_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ const (
// picked by someone in the past for unknown reasons. More in
// e.g. https://github.com/osbuild/bootc-image-builder/pull/568 and
// https://github.com/osbuild/images/pull/823
const diskUuidOfUnknownOrigin = "D209C89E-EA5E-4FBD-B161-B461CCE297E0"
const (
diskUuidOfUnknownOrigin = "D209C89E-EA5E-4FBD-B161-B461CCE297E0"
dosDiskUiidOfUnknownOrigin = "0xc1748067"
)

// efiPartition defines the default ESP. See also
// https://en.wikipedia.org/wiki/EFI_system_partition
Expand Down Expand Up @@ -98,8 +101,8 @@ var partitionTables = distro.BasePartitionTableMap{
},
},
arch.ARCH_AARCH64.String(): disk.PartitionTable{
UUID: diskUuidOfUnknownOrigin,
Type: "gpt",
UUID: dosDiskUiidOfUnknownOrigin,
Type: "dos",
Partitions: []disk.Partition{
efiPartition,
bootPartition,
Expand Down

0 comments on commit 4fba68f

Please sign in to comment.