mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user