From 4fba68f2f6efe7418d1b83542c0ae9c142289c68 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 5 Aug 2024 13:36:57 +0200 Subject: [PATCH] bib: switch arch64 back from "gpt" to "dos" to unbreak pi3 The raspberry pi3 does not support "gpt" partition tables. This commit moves back to "dos" for maximum compatibility. --- bib/cmd/bootc-image-builder/partition_tables.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bib/cmd/bootc-image-builder/partition_tables.go b/bib/cmd/bootc-image-builder/partition_tables.go index c5123072..3cd73ddc 100644 --- a/bib/cmd/bootc-image-builder/partition_tables.go +++ b/bib/cmd/bootc-image-builder/partition_tables.go @@ -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 @@ -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,