diff options
author | Ashley Cui <acui@redhat.com> | 2021-08-12 10:31:17 -0400 |
---|---|---|
committer | Ashley Cui <acui@redhat.com> | 2021-08-24 14:18:55 -0400 |
commit | 3f22e529644aad8e4b763564c9ef98a3cbdae4fc (patch) | |
tree | 0cd4b9b69d955bb5e726417f0c31879784290a5b /cmd/podman/machine/init.go | |
parent | 23f9565547ae2a6b0154e6913abf7f1232f0ece0 (diff) | |
download | podman-3f22e529644aad8e4b763564c9ef98a3cbdae4fc.tar.gz podman-3f22e529644aad8e4b763564c9ef98a3cbdae4fc.tar.bz2 podman-3f22e529644aad8e4b763564c9ef98a3cbdae4fc.zip |
Allow setting of machine stream and image path from containers.conf
Default is "testing"
Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'cmd/podman/machine/init.go')
-rw-r--r-- | cmd/podman/machine/init.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/machine/init.go b/cmd/podman/machine/init.go index f4133dbde..ac0d06a07 100644 --- a/cmd/podman/machine/init.go +++ b/cmd/podman/machine/init.go @@ -34,6 +34,7 @@ func init() { Parent: machineCmd, }) flags := initCmd.Flags() + cfg := registry.PodmanConfig() cpusFlagName := "cpus" flags.Uint64Var( @@ -61,7 +62,7 @@ func init() { _ = initCmd.RegisterFlagCompletionFunc(memoryFlagName, completion.AutocompleteNone) ImagePathFlagName := "image-path" - flags.StringVar(&initOpts.ImagePath, ImagePathFlagName, "", "Path to qcow image") + flags.StringVar(&initOpts.ImagePath, ImagePathFlagName, cfg.Engine.MachineImage, "Path to qcow image") _ = initCmd.RegisterFlagCompletionFunc(ImagePathFlagName, completion.AutocompleteDefault) IgnitionPathFlagName := "ignition-path" |