mirror of
https://github.com/containers/podman.git
synced 2025-06-03 03:07:56 +08:00
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>
This commit is contained in:
@ -172,8 +172,16 @@ func (v *MachineVM) Init(opts machine.InitOptions) (bool, error) {
|
||||
// Add arch specific options including image location
|
||||
v.CmdLine = append(v.CmdLine, v.addArchOptions()...)
|
||||
|
||||
// TODO: add to opts
|
||||
volumeType := VolumeTypeVirtfs
|
||||
var volumeType string
|
||||
switch opts.VolumeDriver {
|
||||
case "virtfs":
|
||||
volumeType = VolumeTypeVirtfs
|
||||
case "": // default driver
|
||||
volumeType = VolumeTypeVirtfs
|
||||
default:
|
||||
err := fmt.Errorf("unknown volume driver: %s", opts.VolumeDriver)
|
||||
return false, err
|
||||
}
|
||||
|
||||
mounts := []Mount{}
|
||||
for i, volume := range opts.Volumes {
|
||||
|
Reference in New Issue
Block a user