mirror of
https://github.com/containers/podman.git
synced 2025-06-01 17:17:47 +08:00
Merge pull request #5676 from kolyshkin/volume-flags-alt
Fix/improve pkg/storage.InitFSMounts
This commit is contained in:
@ -381,11 +381,9 @@ func (config *CreateConfig) createConfigToOCISpec(runtime *libpod.Runtime, userM
|
||||
// BIND MOUNTS
|
||||
configSpec.Mounts = SupercedeUserMounts(userMounts, configSpec.Mounts)
|
||||
// Process mounts to ensure correct options
|
||||
finalMounts, err := InitFSMounts(configSpec.Mounts)
|
||||
if err != nil {
|
||||
if err := InitFSMounts(configSpec.Mounts); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
configSpec.Mounts = finalMounts
|
||||
|
||||
// BLOCK IO
|
||||
blkio, err := config.CreateBlockIO()
|
||||
|
Reference in New Issue
Block a user