mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user