From 3f43516ca7175b4255afbb126fe9bbd96ae1e924 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Tue, 3 Dec 2024 03:51:57 +0000 Subject: [PATCH] fix: disable "advanced/incompatible" features for now Signed-off-by: Ramkumar Chinchani --- pkg/erofs/erofs.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkg/erofs/erofs.go b/pkg/erofs/erofs.go index 191abae..a0e051c 100644 --- a/pkg/erofs/erofs.go +++ b/pkg/erofs/erofs.go @@ -10,7 +10,6 @@ import ( "os/exec" "path" "path/filepath" - "runtime" "strings" "sync" "syscall" @@ -79,14 +78,16 @@ func MakeErofs(tempdir string, rootfs string, eps *common.ExcludePaths, verity v args := []string{tmpErofs.Name(), rootfs} compression := LZ4HCCompression - zstdOk, parallelOk := mkerofsSupportsFeature() - if zstdOk { - args = append(args, "-z", "zstd") - compression = ZstdCompression - } - if parallelOk { - args = append(args, "--workers", fmt.Sprintf("%d", runtime.NumCPU())) - } + /* + zstdOk, parallelOk := mkerofsSupportsFeature() + if zstdOk { + args = append(args, "-z", "zstd") + compression = ZstdCompression + } + if parallelOk { + args = append(args, "--workers", fmt.Sprintf("%d", runtime.NumCPU())) + } + */ if len(toExclude) != 0 { args = append(args, "--exclude-path", excludesFile) }