From e09444327a32d4c6d40ea6cb0a58c16dfcdf84a1 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 4 Mar 2024 09:22:49 +0100 Subject: [PATCH] machine init: print output to improve UX As outlined in #21856, it can take a number of seconds until an image gets pulled. That is because init is hitting the registry first to look up the image. To improve the UX, add a new line indicating what happens. [NO NEW TESTS NEEDED] Fixes: #21856 Signed-off-by: Valentin Rothberg --- pkg/machine/ocipull/ociartifact.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/machine/ocipull/ociartifact.go b/pkg/machine/ocipull/ociartifact.go index 5e17cdf993..edb6f4e6ea 100644 --- a/pkg/machine/ocipull/ociartifact.go +++ b/pkg/machine/ocipull/ociartifact.go @@ -169,6 +169,7 @@ func (o *OCIArtifactDisk) getDestArtifact() (types.ImageReference, digest.Digest if err != nil { return nil, "", err } + fmt.Printf("Looking up Podman Machine image at %s to create VM\n", imgRef.DockerReference()) sysCtx := &types.SystemContext{ DockerInsecureSkipTLSVerify: types.NewOptionalBool(!o.pullOptions.TLSVerify), }