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) }