From 93b615c1f2b512a9dba4c88dee3faedfc089310a Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 5 May 2026 18:17:51 +0200 Subject: [PATCH] machine: move marker file to /etc/podman-machine Matches changes from https://github.com/containers/container-libs/pull/779 Signed-off-by: Paul Holzinger --- pkg/machine/ignition/ignition.go | 5 +++-- pkg/machine/wsl/machine.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/machine/ignition/ignition.go b/pkg/machine/ignition/ignition.go index e95a65e110..498e56613c 100644 --- a/pkg/machine/ignition/ignition.go +++ b/pkg/machine/ignition/ignition.go @@ -323,8 +323,9 @@ pids_limit=0 files = append(files, File{ Node: Node{ Group: GetNodeGrp("root"), - Path: "/etc/containers/podman-machine", - User: GetNodeUsr("root"), + // Files used to /etc/containers/podman-machine but had to be moved so we do not overmount it. + Path: "/etc/podman-machine", + User: GetNodeUsr("root"), }, FileEmbedded1: FileEmbedded1{ Append: nil, diff --git a/pkg/machine/wsl/machine.go b/pkg/machine/wsl/machine.go index f6b0b00c62..04a5ff793a 100644 --- a/pkg/machine/wsl/machine.go +++ b/pkg/machine/wsl/machine.go @@ -179,7 +179,7 @@ func configureSystem(mc *vmconfigs.MachineConfig, dist string, ansibleConfig *vm return err } - if err := wslInvoke(dist, "sh", "-c", "echo wsl > /etc/containers/podman-machine"); err != nil { + if err := wslInvoke(dist, "sh", "-c", "echo wsl > /etc/podman-machine"); err != nil { return fmt.Errorf("could not create podman-machine file for guest OS: %w", err) }