mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00

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>
25 lines
654 B
Go
25 lines
654 B
Go
package define
|
|
|
|
import "net/url"
|
|
|
|
type InitOptions struct {
|
|
PlaybookPath string
|
|
CPUS uint64
|
|
DiskSize uint64
|
|
IgnitionPath string
|
|
Image string
|
|
Volumes []string
|
|
IsDefault bool
|
|
Memory uint64
|
|
Swap uint64
|
|
Name string
|
|
TimeZone string
|
|
URI url.URL
|
|
Username string
|
|
ReExec bool
|
|
Rootful bool
|
|
UID string // uid of the user that called machine
|
|
UserModeNetworking *bool // nil = use backend/system default, false = disable, true = enable
|
|
USBs []string
|
|
}
|