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