Skip to content

Commit

Permalink
rhel: On RHEL10 use erofs to compress the root filesystem of the Anac…
Browse files Browse the repository at this point in the history
…onda ISO
  • Loading branch information
bcl committed Dec 20, 2024
1 parent bc37dbe commit 2544bd2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkg/distro/rhel/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,12 @@ func EdgeInstallerImage(workload workload.Workload,
// kickstart though kickstart does support setting them
img.Kickstart.Timezone, _ = customizations.GetTimezoneSettings()

img.RootfsCompression = "xz"
if t.Arch().Distro().Releasever() == "10" {
img.RootfsType = manifest.SquashfsRootfs
// On RHEL10 use erofs and zstd compression for the iso root filesystem
img.RootfsCompression = "zstd"
img.RootfsType = manifest.ErofsRootfs
} else {
img.RootfsCompression = "xz"
}

installerConfig, err := t.getDefaultInstallerConfig()
Expand Down Expand Up @@ -716,9 +719,12 @@ func ImageInstallerImage(workload workload.Workload,
}
img.AdditionalAnacondaModules = append(img.AdditionalAnacondaModules, anaconda.ModuleUsers)

img.RootfsCompression = "xz"
if t.Arch().Distro().Releasever() == "10" {
img.RootfsType = manifest.SquashfsRootfs
// On RHEL10 use erofs and zstd compression for the iso root filesystem
img.RootfsCompression = "zstd"
img.RootfsType = manifest.ErofsRootfs
} else {
img.RootfsCompression = "xz"
}

// put the kickstart file in the root of the iso
Expand Down

0 comments on commit 2544bd2

Please sign in to comment.