Skip to content

Commit

Permalink
Default squashfs compression to zstd, already part of grub's EFI image
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Jan 29, 2024
1 parent b2116ea commit fd0c44e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package constants
import (
"os"
"path/filepath"
"runtime"
)

const (
Expand Down Expand Up @@ -245,7 +244,7 @@ func GetMokMngrFilePatterns() []string {
}

func GetDefaultGrubModules() []string {
return []string{"loopback.mod", "squash4.mod", "xzio.mod"}
return []string{"loopback.mod", "squash4.mod", "zstd.mod"}
}

func GetDefaultGrubModulesPatterns() []string {
Expand All @@ -266,13 +265,7 @@ func GetDefaultSquashfsOptions() []string {
}

func GetDefaultSquashfsCompressionOptions() []string {
options := []string{"-comp", "xz", "-Xbcj"}
// Set the filter based on arch for best compression results
if runtime.GOARCH == "arm64" {
options = append(options, "arm")
} else {
options = append(options, "x86")
}
options := []string{"-comp", "zstd"}
return options
}

Expand Down

0 comments on commit fd0c44e

Please sign in to comment.