mirror of
https://github.com/containers/podman.git
synced 2025-12-02 19:28:58 +08:00
Update buildah to current master
Vendor some changes to parsing code that we need for Podman. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
4
vendor/github.com/containers/buildah/run_linux.go
generated
vendored
4
vendor/github.com/containers/buildah/run_linux.go
generated
vendored
@@ -343,7 +343,7 @@ func (b *Builder) setupMounts(mountPoint string, spec *specs.Spec, bundlePath st
|
||||
net := namespaceOptions.Find(string(specs.NetworkNamespace))
|
||||
hostNetwork := net == nil || net.Host
|
||||
user := namespaceOptions.Find(string(specs.UserNamespace))
|
||||
hostUser := user == nil || user.Host
|
||||
hostUser := (user == nil || user.Host) && !unshare.IsRootless()
|
||||
|
||||
// Copy mounts from the generated list.
|
||||
mountCgroups := true
|
||||
@@ -431,7 +431,7 @@ func (b *Builder) setupMounts(mountPoint string, spec *specs.Spec, bundlePath st
|
||||
|
||||
// Add temporary copies of the contents of volume locations at the
|
||||
// volume locations, unless we already have something there.
|
||||
copyWithTar := b.copyWithTar(nil, nil, nil)
|
||||
copyWithTar := b.copyWithTar(nil, nil, nil, false)
|
||||
builtins, err := runSetupBuiltinVolumes(b.MountLabel, mountPoint, cdir, copyWithTar, builtinVolumes, int(rootUID), int(rootGID))
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user