spiegel_podman/cmd/podman/machine
Lewis Roy 7b1055a5fb
feat: Add support for configuring swap in Podman machine
Add `--swap` argument to `podman machine init` command.

Passing an int64 value to this flag will trigger the Podman machine
ignition file to be generated with a zram-generator.conf file containing
the --swap value as the zram-size argument.

This file is read by the zram-generator systemd service on boot
resulting in a zram swap device being created.

Fixes: https://github.com/containers/podman/issues/15980

Signed-off-by: Lewis Roy <lewis@redhat.com>
2025-04-29 12:20:24 +10:00
..
os Move DefaultMachineName to pkg/machine/define 2024-09-24 15:36:14 -04:00
client9p.go Ensure HyperV 9p mounts work when a dir doesn't exist 2024-02-27 14:33:53 -05:00
cp.go Introduce podman machine cp command 2025-02-28 09:56:46 -05:00
info.go Refactor env dir and port functions into new leaf pkgs 2024-03-04 23:54:31 -06:00
init.go feat: Add support for configuring swap in Podman machine 2025-04-29 12:20:24 +10:00
inspect.go Add Rosetta support for Apple Silicon mac 2024-05-17 17:53:28 +09:00
list.go feat: Add support for configuring swap in Podman machine 2025-04-29 12:20:24 +10:00
machine.go Introduce podman machine cp command 2025-02-28 09:56:46 -05:00
machine_unix.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
machine_unsupported.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
machine_windows.go Fix podman machine on Windows 2022-06-30 16:21:59 -05:00
os.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
reset.go Remove unnecessary error handling 2025-01-29 12:12:17 -06:00
rm.go Refactor env dir and port functions into new leaf pkgs 2024-03-04 23:54:31 -06:00
server9p.go Update module github.com/shirou/gopsutil to v4 2024-09-03 18:20:12 +02:00
set.go Error when machine memory exceeds system memory 2024-06-28 10:02:11 -05:00
ssh.go Honor rootfulness when SSH-ing into named Machine 2025-03-14 13:48:49 -04:00
start.go pkg/machine: make checkExclusiveActiveVM race free 2024-03-14 11:13:08 +01:00
stop.go podman machine start/stop do not write config unlocked 2024-03-07 15:11:41 +01:00