Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rhel: On RHEL10 use erofs to compress the root filesystem of the Anaconda ISO #1160

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 lzma compression for the iso root filesystem
img.RootfsCompression = "lzma"
img.RootfsType = manifest.ErofsRootfs
} else {
img.RootfsCompression = "xz"
}

installerConfig, err := t.getDefaultInstallerConfig()
Expand Down Expand Up @@ -720,9 +723,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 lzma compression for the iso root filesystem
img.RootfsCompression = "lzma"
img.RootfsType = manifest.ErofsRootfs
} else {
img.RootfsCompression = "xz"
}

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