Merge pull request #2673 from sipsma/no-stargz-hardlink

merge: disable stargz hardlinking
master
Erik Sipsma 2022-02-23 16:50:13 -08:00 committed by GitHub
commit ff205f9ad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ import (
var hardlinkMergeSnapshotters = map[string]struct{}{
"native": {},
"overlayfs": {},
"stargz": {},
}
// overlayBasedSnapshotters are the names of snapshotter that use overlay mounts, which
@ -84,7 +83,7 @@ func NewMergeSnapshotter(ctx context.Context, sn Snapshotter, lm leases.Manager)
tryCrossSnapshotLink = false
skipBaseLayers = false
} else {
tryCrossSnapshotLink = userxattr
tryCrossSnapshotLink = tryCrossSnapshotLink && userxattr
// Disable skipping base layers when in pre-5.11 rootless mode. Skipping the base layers
// necessitates the ability to set opaque xattrs sometimes, which only works in 5.11+
// kernels that support userxattr.