Skip to content

Commit

Permalink
manifest: small function for insights-client drop-in
Browse files Browse the repository at this point in the history
We need to create a drop-in file that will enable
insights-client.service to run on boot for edge systems.

Ref: HMS-4031
  • Loading branch information
achilleas-k committed May 3, 2024
1 parent 31f8fef commit da73ba2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/manifest/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}

0 comments on commit da73ba2

Please sign in to comment.