mirror of
https://github.com/containers/podman.git
synced 2026-07-13 00:31:45 -04:00
machine/wsl: drop cgroup_manager cgroupfs
I think this should work fine with the defaults. Since we mount the
/etc/containers dir always we should no longer write to /etc/containers.
If we still need this it should be moved into the image and not done at
init time.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 81fd1e6e85)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -8,12 +8,6 @@ const (
|
||||
currentMachineVersion = 3
|
||||
)
|
||||
|
||||
const containersConf = `[containers]
|
||||
|
||||
[engine]
|
||||
cgroup_manager = "cgroupfs"
|
||||
`
|
||||
|
||||
const appendPort = `grep -q Port\ %d /etc/ssh/sshd_config || echo Port %d >> /etc/ssh/sshd_config`
|
||||
|
||||
const changePort = `sed -E -i 's/^Port[[:space:]]+[0-9]+/Port %d/' /etc/ssh/sshd_config`
|
||||
|
||||
@@ -167,10 +167,6 @@ func configureSystem(mc *vmconfigs.MachineConfig, dist string, ansibleConfig *vm
|
||||
return err
|
||||
}
|
||||
|
||||
if err := wslPipe(containersConf, dist, "sh", "-c", "cat > /etc/containers/containers.conf"); err != nil {
|
||||
return fmt.Errorf("could not create containers.conf for guest OS: %w", err)
|
||||
}
|
||||
|
||||
if err := setupPodmanDockerSock(dist, mc.HostUser.Rootful); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user