machine: move marker file to /etc/podman-machine

Matches changes from https://github.com/containers/container-libs/pull/779

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2026-05-05 18:17:51 +02:00
parent e34f3bce0c
commit 93b615c1f2
2 changed files with 4 additions and 3 deletions

View File

@@ -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,

View File

@@ -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)
}