From 544cee43fae3aac747d59ef5a65ba7e34569da43 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Mon, 2 Dec 2024 08:06:01 +0000 Subject: [PATCH] add Signed-off-by: Ramkumar Chinchani --- pkg/erofs/erofs.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/erofs/erofs.go b/pkg/erofs/erofs.go index d1b9d4f..6fe3a2b 100644 --- a/pkg/erofs/erofs.go +++ b/pkg/erofs/erofs.go @@ -79,8 +79,11 @@ func MakeErofs(tempdir string, rootfs string, eps *common.ExcludePaths, verity v args := []string{tmpErofs.Name(), rootfs} compression := LZ4HCCompression - // NOTE: both zstd and parallel support is experimental, skipping for now - _, parallelOk := mkerofsSupportsFeature() + zstdOk, parallelOk := mkerofsSupportsFeature() + if zstdOk && false { // NOTE: zstd support is experimental, skipping for now + args = append(args, "-z", "zstd") + compression = ZstdCompression + } if parallelOk { args = append(args, "--workers", fmt.Sprintf("%d", runtime.NumCPU())) }