From 6704dfd60994dca669fe2419fc1264128554e27f Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Fri, 17 Mar 2023 09:53:48 +0100 Subject: [PATCH] distro/fedora: clarify `requiredPartitionSizes` --- internal/distro/fedora/distro.go | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/internal/distro/fedora/distro.go b/internal/distro/fedora/distro.go index d6ad88a80..c84d13728 100644 --- a/internal/distro/fedora/distro.go +++ b/internal/distro/fedora/distro.go @@ -160,14 +160,18 @@ var ( defaultImageConfig: &distro.ImageConfig{ Locale: common.ToPtr("en_US.UTF-8"), }, - defaultSize: 4 * common.GibiByte, - rpmOstree: true, - bootable: true, - image: iotRawImage, - buildPipelines: []string{"build"}, - payloadPipelines: []string{"image-tree", "image", "xz"}, - exports: []string{"xz"}, - basePartitionTables: iotBasePartitionTables, + defaultSize: 4 * common.GibiByte, + rpmOstree: true, + bootable: true, + image: iotRawImage, + buildPipelines: []string{"build"}, + payloadPipelines: []string{"image-tree", "image", "xz"}, + exports: []string{"xz"}, + basePartitionTables: iotBasePartitionTables, + + // Passing an empty map into the required partition sizes disables the + // default partition sizes normally set so our `basePartitionTables` can + // override them (and make them smaller, in this case). requiredPartitionSizes: map[string]uint64{}, }