From da73ba29998f27442508e275366f85fb686225b2 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 30 Apr 2024 18:45:50 +0200 Subject: [PATCH] manifest: small function for insights-client drop-in We need to create a drop-in file that will enable insights-client.service to run on boot for edge systems. Ref: HMS-4031 --- pkg/manifest/os.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkg/manifest/os.go b/pkg/manifest/os.go index 36b3114d7e..8c84493f99 100644 --- a/pkg/manifest/os.go +++ b/pkg/manifest/os.go @@ -882,3 +882,14 @@ func (p *OS) getInline() []string { return inlineData } + +// Filename and contents for the insights-client service drop-in. +// This is a temporary workaround until the org.osbuild.systemd.unit stage +// gains support for all the options we need. +func insightsClientDropin() (string, string) { + return "/etc/systemd/system/insights-client.service.d/override.conf", `[Unit] +Requisite=greenboot-healthcheck.service +After=network-online.target greenboot-healthcheck.service osbuild-first-boot.service +[Install] +WantedBy=multi-user.target` +}