diff --git a/.github/issue-labeler.yml b/.github/issue-labeler.yml index e285749a96..8402564232 100644 --- a/.github/issue-labeler.yml +++ b/.github/issue-labeler.yml @@ -11,3 +11,7 @@ macos: remote: # we cannot use multiline regex so we check for serviceIsRemote in podman info - 'serviceIsRemote:\strue' + +machine: + # machine-os uses its own variant so use that to label issues with machine based on podman info + - 'variant:\spodman-machine-os' diff --git a/cmd/podman/machine/os/manager.go b/cmd/podman/machine/os/manager.go index 9fd424655c..e2a6472523 100644 --- a/cmd/podman/machine/os/manager.go +++ b/cmd/podman/machine/os/manager.go @@ -58,10 +58,10 @@ func guestOSManager() (pkgOS.Manager, error) { return nil, fmt.Errorf("failed to read os-release file: %w", err) } switch { - case dist.Name == "fedora" && dist.Variant == "coreos": + case dist.Name == "fedora" && dist.Variant == "podman-machine-os": return &pkgOS.OSTree{}, nil default: - return nil, errors.New("unsupported OS") + return nil, fmt.Errorf("unsupported OS/Variant: %s/%s", dist.Name, dist.Variant) } } diff --git a/docs/source/markdown/podman-machine-os-upgrade.1.md b/docs/source/markdown/podman-machine-os-upgrade.1.md index a3911a66a3..89c3c76b97 100644 --- a/docs/source/markdown/podman-machine-os-upgrade.1.md +++ b/docs/source/markdown/podman-machine-os-upgrade.1.md @@ -18,6 +18,8 @@ then the OS changes will be applied to `podman-machine-default`. The machine must be started for this command to be run. +Note: This command is not supported with the WSL machine provider. + ### UPGRADE LOGIC The upgrade function compares the client version against the machine version using semantic versioning (major.minor