diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-12-13 20:34:37 +0100 |
---|---|---|
committer | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-12-30 13:47:16 +0100 |
commit | 6630e5cf66cf76aefcfe9caebe5df4f37dd0bdd5 (patch) | |
tree | 70e331263370fe3ce81673f89e8f426a8c83212f /cmd | |
parent | a3326e23d852fdcf03e7358f631ca24f5881ac70 (diff) | |
download | podman-6630e5cf66cf76aefcfe9caebe5df4f37dd0bdd5.tar.gz podman-6630e5cf66cf76aefcfe9caebe5df4f37dd0bdd5.tar.bz2 podman-6630e5cf66cf76aefcfe9caebe5df4f37dd0bdd5.zip |
Make it possible to select the volume driver
Use the same type of mounts for all the machine volumes.
The default could change in the future, depending on OS.
[NO NEW TESTS NEEDED]
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/machine/init.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/machine/init.go b/cmd/podman/machine/init.go index b913a252e..ed04239c4 100644 --- a/cmd/podman/machine/init.go +++ b/cmd/podman/machine/init.go @@ -92,6 +92,10 @@ func init() { flags.StringArrayVarP(&initOpts.Volumes, VolumeFlagName, "v", []string{}, "Volumes to mount, source:target") _ = initCmd.RegisterFlagCompletionFunc(VolumeFlagName, completion.AutocompleteDefault) + VolumeDriverFlagName := "volume-driver" + flags.StringVar(&initOpts.VolumeDriver, VolumeDriverFlagName, "", "Optional volume driver") + _ = initCmd.RegisterFlagCompletionFunc(VolumeDriverFlagName, completion.AutocompleteDefault) + IgnitionPathFlagName := "ignition-path" flags.StringVar(&initOpts.IgnitionPath, IgnitionPathFlagName, "", "Path to ignition file") _ = initCmd.RegisterFlagCompletionFunc(IgnitionPathFlagName, completion.AutocompleteDefault) |