mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +08:00
Implement disable default mounts via command line
Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
This commit is contained in:
@@ -168,9 +168,13 @@ func (q *QEMUStubber) StartVM(mc *vmconfigs.MachineConfig) (func() error, func()
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
spawner, err := newVirtiofsdSpawner(runtime)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
||||
var spawner *virtiofsdSpawner
|
||||
if len(mc.Mounts) > 0 {
|
||||
spawner, err = newVirtiofsdSpawner(runtime)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
}
|
||||
|
||||
for _, hostmnt := range mc.Mounts {
|
||||
|
||||
Reference in New Issue
Block a user