podman machine: pull wsl image from machine-os

Starting with [1] we now build and publish the wsl image from the
machine-os repo, as such this special case is no longer needed.

[1] https://github.com/containers/podman-machine-os/pull/142

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2025-06-10 18:09:21 +02:00
parent dbebcbe619
commit 22789928d4
No known key found for this signature in database
GPG Key ID: EB145DD938A3CAF2
1 changed files with 0 additions and 7 deletions

View File

@ -27,7 +27,6 @@ const (
artifactRegistry = "quay.io"
artifactRepo = "podman"
artifactImageName = "machine-os"
artifactImageNameWSL = "machine-os-wsl"
artifactOriginalName = "org.opencontainers.image.title"
machineOS = "linux"
)
@ -95,13 +94,7 @@ func NewOCIArtifactPull(ctx context.Context, dirs *define.MachineDirs, endpoint
cache := false
if endpoint == "" {
// The OCI artifact containing the OS image for WSL has a different
// image name. This should be temporary and dropped as soon as the
// OS image for WSL is built from fedora-coreos too (c.f. RUN-2178).
imageName := artifactImageName
if vmType == define.WSLVirt {
imageName = artifactImageNameWSL
}
endpoint = fmt.Sprintf("docker://%s/%s/%s:%s", artifactRegistry, artifactRepo, imageName, artifactVersion.majorMinor())
cache = true
}