From c201271879092710d0b673a5a03e78c86869e009 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Fri, 20 Dec 2024 09:29:37 -0800 Subject: [PATCH] rhel: On RHEL10 use erofs to compress the root filesystem of the Anaconda ISO --- pkg/distro/rhel/images.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkg/distro/rhel/images.go b/pkg/distro/rhel/images.go index e6fb7bb9b8..106d03d8c5 100644 --- a/pkg/distro/rhel/images.go +++ b/pkg/distro/rhel/images.go @@ -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() @@ -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