summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-01-06 21:04:12 +0100
committerGitHub <noreply@github.com>2022-01-06 21:04:12 +0100
commitd62752819214ee7f910e25d368d427fbcac74b17 (patch)
tree85f61c7ea0190923d5ce85190764700708dba25c /cmd
parent2fd6c2ee89e92ced8568d7ed3ea3f04017b154ed (diff)
parent6630e5cf66cf76aefcfe9caebe5df4f37dd0bdd5 (diff)
downloadpodman-d62752819214ee7f910e25d368d427fbcac74b17.tar.gz
podman-d62752819214ee7f910e25d368d427fbcac74b17.tar.bz2
podman-d62752819214ee7f910e25d368d427fbcac74b17.zip
Merge pull request #11454 from afbjorklund/virtfs-volumes
Implement virtfs volumes for podman machine
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/machine/init.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/podman/machine/init.go b/cmd/podman/machine/init.go
index 14e87c201..ed04239c4 100644
--- a/cmd/podman/machine/init.go
+++ b/cmd/podman/machine/init.go
@@ -88,6 +88,14 @@ func init() {
flags.StringVar(&initOpts.ImagePath, ImagePathFlagName, cfg.Machine.Image, "Path to qcow image")
_ = initCmd.RegisterFlagCompletionFunc(ImagePathFlagName, completion.AutocompleteDefault)
+ VolumeFlagName := "volume"
+ 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)