diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-09-05 22:16:59 +0200 |
---|---|---|
committer | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-12-30 13:36:56 +0100 |
commit | 8e7eeaa4dd14621bda15e396fcd7b9187bc500c5 (patch) | |
tree | 48c47ce64edb0ac5288fbe2e1a74a7c2ace28fb8 /cmd/podman | |
parent | 807f7cfed3df770abcb7609e9b281d666a110b27 (diff) | |
download | podman-8e7eeaa4dd14621bda15e396fcd7b9187bc500c5.tar.gz podman-8e7eeaa4dd14621bda15e396fcd7b9187bc500c5.tar.bz2 podman-8e7eeaa4dd14621bda15e396fcd7b9187bc500c5.zip |
Implement virtfs volumes for podman machine
Allow using the built-in 9pfs feature of qemu,
mounting host directories into vm mountpoints.
The volumes are generic, the mounts are specific.
Wait for the machine to be "running", otherwise
the SSH function might throw an error instead.
Increase the default msize from 8 KiB to 128 KiB
[NO NEW TESTS NEEDED]
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'cmd/podman')
-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 14e87c201..b913a252e 100644 --- a/cmd/podman/machine/init.go +++ b/cmd/podman/machine/init.go @@ -88,6 +88,10 @@ 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) + IgnitionPathFlagName := "ignition-path" flags.StringVar(&initOpts.IgnitionPath, IgnitionPathFlagName, "", "Path to ignition file") _ = initCmd.RegisterFlagCompletionFunc(IgnitionPathFlagName, completion.AutocompleteDefault) |