From 3289f9b07b23c5852c3364eea7d175cade885f61 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Thu, 7 Jul 2022 21:15:12 +0200 Subject: [PATCH] distro/rhel8: explicitly enable google agent services for 8.4 The google-guest-agent services don't get enabled on 8.4. The reason for this is currently unknown. Enabling them explicitly works. --- internal/distro/rhel8/distro.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/internal/distro/rhel8/distro.go b/internal/distro/rhel8/distro.go index f76940b70..0bd6d7179 100644 --- a/internal/distro/rhel8/distro.go +++ b/internal/distro/rhel8/distro.go @@ -723,6 +723,7 @@ func newDistro(distroName string) distro.Distro { "greenboot-task-runner", "redboot-auto-reboot", "redboot-task-runner") + } if !(rd.isRHEL() && versionLessThan(rd.osVersion, "8.6")) { @@ -1729,6 +1730,19 @@ func newDistro(distroName string) distro.Distro { }, } + if rd.osVersion == "8.4" { + // NOTE(akoutsou): these are enabled in the package preset, but for + // some reason do not get enabled on 8.4. + // the reason is unknown and deeply myserious + defaultGceByosImageConfig.EnabledServices = append(defaultGceByosImageConfig.EnabledServices, + "google-oslogin-cache.timer", + "google-guest-agent.service", + "google-shutdown-scripts.service", + "google-startup-scripts.service", + "google-osconfig-agent.service", + ) + } + gceImgType := imageType{ name: "gce", filename: "image.tar.gz",