mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-30 17:57:45 +00:00
Merge pull request #26336 from Luap99/wsl-machine-image
podman machine: pull wsl image from machine-os
This commit is contained in:
commit
08657e4d16
1 changed files with 0 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue