Skip to content

Commit

Permalink
checkup: Add selinux context to boot script marker file
Browse files Browse the repository at this point in the history
When the boot script is done, after tuned-adm is set and reboot - the
BootScriptReadinessMarkerFileFullPath file marker is set.
In order to be polled [0] by guest-agent ping in later commits, adding
the proper selinux context to this file.

[0]
https://kubevirt.io/user-guide/virtual_machines/liveness_and_readiness_probes/#defining-guest-agent-ping-probes

Signed-off-by: Ram Lavi <[email protected]>
  • Loading branch information
RamLavi committed Apr 4, 2024
1 parent f99111a commit 770e8d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/internal/checkup/checkup.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ func generateBootScript() string {
sb.WriteString("fi\n")
sb.WriteString("\n")
sb.WriteString("touch " + config.BootScriptReadinessMarkerFileFullPath + "\n")
sb.WriteString("chcon -t virt_qemu_ga_exec_t " + config.BootScriptReadinessMarkerFileFullPath + "\n")

return sb.String()
}
Expand Down

0 comments on commit 770e8d4

Please sign in to comment.