refactor(machine): improve machine marker value

1. Set the marker to the current virtual machine type instead of fixed qemu.
2. Update containers/common

[NO NEW TESTS NEEDED]

Signed-off-by: Black-Hole1 <bh@bugs.cc>
This commit is contained in:
Black-Hole1
2023-11-28 10:10:38 +08:00
parent e4cdd4b35a
commit a2bf8c6d50
35 changed files with 361 additions and 51 deletions

View File

@ -15,6 +15,7 @@ import (
"strings"
"time"
"github.com/containers/common/pkg/machine"
"github.com/containers/podman/v4/pkg/machine/compression"
"github.com/containers/podman/v4/pkg/machine/define"
"github.com/containers/storage/pkg/homedir"
@ -352,13 +353,13 @@ const (
func (v VMType) String() string {
switch v {
case WSLVirt:
return "wsl"
return machine.Wsl
case AppleHvVirt:
return "applehv"
return machine.AppleHV
case HyperVVirt:
return "hyperv"
return machine.HyperV
}
return "qemu"
return machine.Qemu
}
type APIForwardingState int