mirror of
https://github.com/containers/podman.git
synced 2025-08-03 01:37:51 +08:00
Don't double-process tmpfs options
We already process the options on all tmpfs filesystems during final addition of mounts to the spec. We don't need to do it before that in parseVolumes. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -195,16 +195,6 @@ func (config *CreateConfig) parseVolumes(runtime *libpod.Runtime) ([]spec.Mount,
|
||||
// Final step: maps to arrays
|
||||
finalMounts := make([]spec.Mount, 0, len(baseMounts))
|
||||
for _, mount := range baseMounts {
|
||||
// All user-added tmpfs mounts need their options processed.
|
||||
// Exception: mounts added by the ReadOnlyTmpfs option, which
|
||||
// contain several exceptions to normal options rules.
|
||||
if mount.Type == TypeTmpfs {
|
||||
opts, err := util.ProcessOptions(mount.Options, true)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
mount.Options = opts
|
||||
}
|
||||
if mount.Type == TypeBind {
|
||||
absSrc, err := filepath.Abs(mount.Source)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user