distro/rhel9: update ami to new definitions

Add the image function and remove the pipeline function.
Remove the build package set: build packages are added to the pipeline
on-demand.
This commit is contained in:
Achilleas Koutsou 2022-11-02 18:21:27 +01:00 committed by Christian Kellner
parent e2f7e1aed4
commit bd4359ffd9

View file

@ -15,8 +15,7 @@ var (
filename: "image.raw", filename: "image.raw",
mimeType: "application/octet-stream", mimeType: "application/octet-stream",
packageSets: map[string]packageSetFunc{ packageSets: map[string]packageSetFunc{
buildPkgsKey: ec2BuildPackageSet, osPkgsKey: ec2CommonPackageSet,
osPkgsKey: ec2CommonPackageSet,
}, },
packageSetChains: map[string][]string{ packageSetChains: map[string][]string{
osPkgsKey: {osPkgsKey, blueprintPkgsKey}, osPkgsKey: {osPkgsKey, blueprintPkgsKey},
@ -25,7 +24,7 @@ var (
bootable: true, bootable: true,
bootType: distro.LegacyBootType, bootType: distro.LegacyBootType,
defaultSize: 10 * common.GibiByte, defaultSize: 10 * common.GibiByte,
pipelines: ec2Pipelines, image: liveImage,
buildPipelines: []string{"build"}, buildPipelines: []string{"build"},
payloadPipelines: []string{"os", "image"}, payloadPipelines: []string{"os", "image"},
exports: []string{"image"}, exports: []string{"image"},