diff --git a/cmd/osbuild-composer/config.go b/cmd/osbuild-composer/config.go index d89dea58c2..4887534e4f 100644 --- a/cmd/osbuild-composer/config.go +++ b/cmd/osbuild-composer/config.go @@ -111,6 +111,11 @@ func GetDefaultConfig() *ComposerConfigFile { "gce-rhui", }, }, + "fedora-*": { + ImageTypeDenyList: []string{ + "iot-bootable-container", + }, + }, }, }, DistroAliases: map[string]string{ diff --git a/cmd/osbuild-composer/config_test.go b/cmd/osbuild-composer/config_test.go index 009cd11298..1c4fe2bcf1 100644 --- a/cmd/osbuild-composer/config_test.go +++ b/cmd/osbuild-composer/config_test.go @@ -57,6 +57,11 @@ func TestDefaultConfig(t *testing.T) { "gce-rhui", }, }, + "fedora-*": { + []string{ + "iot-bootable-container", + }, + }, }, } @@ -113,9 +118,11 @@ func TestWeldrDistrosImageTypeDenyList(t *testing.T) { require.NoError(t, err) require.NotNil(t, config) + // rhel config is overridden, but fedora is unaffected expectedWeldrDistrosImageTypeDenyList := map[string][]string{ - "*": {"qcow2", "vmdk"}, - "rhel-84": {"qcow2"}, + "*": {"qcow2", "vmdk"}, + "fedora-*": {"iot-bootable-container"}, + "rhel-84": {"qcow2"}, } require.Equal(t, expectedWeldrDistrosImageTypeDenyList, config.weldrDistrosImageTypeDenyList())