From c1e0f091ed45b2f3803868295a9a41cc8fff5041 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Mon, 19 Dec 2022 11:48:30 +0100 Subject: [PATCH] gate ignition behind el92/c9s Signed-off-by: Antonio Murdaca --- internal/distro/rhel9/images.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/distro/rhel9/images.go b/internal/distro/rhel9/images.go index 0ce4deed452..6155a07d4bd 100644 --- a/internal/distro/rhel9/images.go +++ b/internal/distro/rhel9/images.go @@ -211,6 +211,9 @@ func edgeCommitImage(workload workload.Workload, img.Platform = t.platform img.OSCustomizations = osCustomizations(t, packageSets[osPkgsKey], options, containers, customizations) + if !common.VersionLessThan(t.arch.distro.osVersion, "9.2") || !common.VersionLessThan(t.arch.distro.osVersion, "9-stream") { + img.OSCustomizations.EnabledServices = append(img.OSCustomizations.EnabledServices, "ignition-firstboot-complete.service", "coreos-ignition-write-issues", "coreos-ignition-write-issues") + } img.Environment = t.environment img.Workload = workload