Skip to content

Commit 24f22c3

Browse files
camilamacedo86ci-robot
authored andcommitted
UPSTREAM: <carry>: fix: set NoLchown=true to allow image unpack on OCPci
1 parent 668cdc2 commit 24f22c3

File tree

1 file changed

+3
-0
lines changed
  • openshift/default-catalog-consistency/pkg/extract

1 file changed

+3
-0
lines changed

openshift/default-catalog-consistency/pkg/extract/extract.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ func extractLayers(ctx context.Context, layoutPath, fsPath, tag string) error {
176176
mask := os.FileMode(0755)
177177
opts := &archive.TarOptions{
178178
ForceMask: &mask,
179+
// Required to avoid permission errors when extracting the layers in the OCP CI environment.
180+
// extract filesystem: apply layer 0: lchown /tmp/.../afs: operation not permitted
181+
NoLchown: true,
179182
}
180183

181184
_, err = archive.ApplyUncompressedLayer(fsPath, decompress, opts)

0 commit comments

Comments
 (0)