podman machine: disable zincati update service

As explained in #21022, there are all kinds of downsides to a machine
updating itself (via zincati) automatically, like interuption of
service, lost mounts, etc.

disabling zincati will at least allow stop these downsides.  we are
likely to contemplate if podman will take over the update process
externally where interuption of services will not occur etc.

Fixes #20122

Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
Brent Baude
2023-09-28 09:07:42 -05:00
parent c2a8ed19c0
commit 94818f5941
4 changed files with 55 additions and 5 deletions

View File

@ -203,13 +203,13 @@ func (matcher *ValidJSONMatcher) NegatedFailureMessage(actual interface{}) (mess
}
func skipIfVmtype(vmType machine.VMType, message string) {
if testProvider.VMType() == vmType {
if isVmtype(vmType) {
Skip(message)
}
}
func skipIfNotVmtype(vmType machine.VMType, message string) {
if testProvider.VMType() != vmType {
if !isVmtype(vmType) {
Skip(message)
}
}
@ -217,3 +217,12 @@ func skipIfNotVmtype(vmType machine.VMType, message string) {
func skipIfWSL(message string) {
skipIfVmtype(machine.WSLVirt, message)
}
func isVmtype(vmType machine.VMType) bool {
return testProvider.VMType() == vmType
}
// isWSL is a simple wrapper to determine if the testprovider is WSL
func isWSL() bool {
return isVmtype(machine.WSLVirt)
}