From 299a33e858d2ddfff3a458ea425af8db79e69c95 Mon Sep 17 00:00:00 2001 From: Timofey Kirillov Date: Fri, 10 Dec 2021 16:04:26 +0300 Subject: [PATCH] fix(buildah): do not use ignore_chown_errors option for overlay storage driver --- pkg/buildah/docker_with_fuse.go | 1 - pkg/buildah/native_linux.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/pkg/buildah/docker_with_fuse.go b/pkg/buildah/docker_with_fuse.go index 8e2c04eae7..9460bd1f98 100644 --- a/pkg/buildah/docker_with_fuse.go +++ b/pkg/buildah/docker_with_fuse.go @@ -281,7 +281,6 @@ func newBuildahCliStoreOptions(driver StorageDriver) (*StoreOptions, error) { return nil, fmt.Errorf("unable to get overlay options: %s", err) } graphDriverOptions = append(graphDriverOptions, fuseOpts...) - graphDriverOptions = append(graphDriverOptions, fmt.Sprintf("%s.ignore_chown_errors=true", StorageDriverOverlay)) } return &StoreOptions{ diff --git a/pkg/buildah/native_linux.go b/pkg/buildah/native_linux.go index a75a576478..22c8ea89b0 100644 --- a/pkg/buildah/native_linux.go +++ b/pkg/buildah/native_linux.go @@ -375,8 +375,6 @@ func NewNativeStoreOptions(rootlessUID int, driver StorageDriver) (*thirdparty.S graphDriverOptions = append(graphDriverOptions, fuseOpts...) } - - graphDriverOptions = append(graphDriverOptions, fmt.Sprintf("%s.ignore_chown_errors=true", StorageDriverOverlay)) } return &thirdparty.StoreOptions{