From eac4a4eb9a27768a12e98664c17bf07afd700685 Mon Sep 17 00:00:00 2001 From: liulanzheng Date: Tue, 22 Oct 2024 15:44:34 +0800 Subject: [PATCH] force overlay commit Signed-off-by: liulanzheng --- cache/blobs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/blobs.go b/cache/blobs.go index eea130803934..71e61124e069 100644 --- a/cache/blobs.go +++ b/cache/blobs.go @@ -493,7 +493,7 @@ func commitOverlayBD(ctx context.Context, sr *immutableRef, desc *ocispecs.Descr } dir := path.Dir(bdPath) commitPath := path.Join(dir, "overlaybd.commit") - err = obdcmd.Commit(ctx, dir, dir, true, "-t", "-z") + err = obdcmd.Commit(ctx, dir, dir, true, "-t", "-f", "-z") if err != nil { return errors.Wrapf(err, "failed to overlaybd-commit") }