Merge pull request #20356 from vrothberg/RUN-1935

new 'no-dereference' mount option
This commit is contained in:
openshift-merge-bot[bot]
2023-11-21 14:40:03 +00:00
committed by GitHub
10 changed files with 105 additions and 10 deletions

View File

@ -366,7 +366,11 @@ func (c *Container) generateSpec(ctx context.Context) (s *spec.Spec, cleanupFunc
if err := c.relabel(m.Source, c.MountLabel(), label.IsShared(o)); err != nil {
return nil, nil, err
}
case "no-dereference":
// crun calls the option `copy-symlink`.
// Podman decided for --no-dereference as many
// bin-utils tools (e..g, touch, chown, cp) do.
options = append(options, "copy-symlink")
default:
options = append(options, o)
}