mirror of
https://github.com/containers/podman.git
synced 2025-12-02 11:08:36 +08:00
Update to runc main, removing pin to an older version
We were pinned to a specific commit to ensure that tests kept passing. Hopefully they pass now, as we need to grab latest runc for CVE fixes. Also grab Buildah main to fix a build issue on FreeBSD. After a botched manual vendor, I used Ed's treadmill script and squashed it into this commit to make Git happy. Thanks bunches Ed. Signed-off-by: Matt Heon <mheon@redhat.com>
This commit is contained in:
14
vendor/github.com/containers/buildah/pkg/overlay/overlay.go
generated
vendored
14
vendor/github.com/containers/buildah/pkg/overlay/overlay.go
generated
vendored
@@ -6,6 +6,7 @@ import (
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"errors"
|
||||
|
||||
@@ -14,7 +15,6 @@ import (
|
||||
"github.com/containers/storage/pkg/unshare"
|
||||
"github.com/opencontainers/runtime-spec/specs-go"
|
||||
"github.com/sirupsen/logrus"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
// Options type holds various configuration options for overlay
|
||||
@@ -113,10 +113,10 @@ func MountReadOnly(contentDir, source, dest string, rootUID, rootGID int, graphO
|
||||
|
||||
// findMountProgram finds if any mount program is specified in the graph options.
|
||||
func findMountProgram(graphOptions []string) string {
|
||||
mountMap := map[string]bool{
|
||||
".mount_program": true,
|
||||
"overlay.mount_program": true,
|
||||
"overlay2.mount_program": true,
|
||||
mountMap := map[string]struct{}{
|
||||
".mount_program": {},
|
||||
"overlay.mount_program": {},
|
||||
"overlay2.mount_program": {},
|
||||
}
|
||||
|
||||
for _, i := range graphOptions {
|
||||
@@ -126,7 +126,7 @@ func findMountProgram(graphOptions []string) string {
|
||||
}
|
||||
key := s[0]
|
||||
val := s[1]
|
||||
if mountMap[key] {
|
||||
if _, has := mountMap[key]; has {
|
||||
return val
|
||||
}
|
||||
}
|
||||
@@ -180,7 +180,7 @@ func Unmount(contentDir string) error {
|
||||
}
|
||||
|
||||
// Ignore EINVAL as the specified merge dir is not a mount point
|
||||
if err := unix.Unmount(mergeDir, 0); err != nil && !errors.Is(err, os.ErrNotExist) && err != unix.EINVAL {
|
||||
if err := system.Unmount(mergeDir); err != nil && !errors.Is(err, os.ErrNotExist) && !errors.Is(err, syscall.EINVAL) {
|
||||
return fmt.Errorf("unmount overlay %s: %w", mergeDir, err)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user