rhel90: add dracut modules for iso

The nvdimm module is required for booting the image via UEFI HTTP.

The rest are added for feature parity with the official RHEL 9.0 ISO.

Fixes rhbz#2030730
This commit is contained in:
Achilleas Koutsou 2022-07-25 15:50:54 +02:00 committed by Christian Kellner
parent 9def545570
commit 02bb7a0b4f
26 changed files with 609 additions and 101 deletions

View file

@ -1223,6 +1223,7 @@ func anacondaPackageSet(t *imageType) rpmmd.PackageSet {
"nmap-ncat",
"nm-connection-editor",
"nss-tools",
"nvme-cli", // for nvmf dracut module
"openssh-clients",
"openssh-server",
"oscap-anaconda-addon",

View file

@ -1045,17 +1045,20 @@ func anacondaTreePipeline(repos []rpmmd.RepoConfig, packages []rpmmd.PackageSpec
p.AddStage(osbuild.NewUsersStage(usersStageOptions))
p.AddStage(osbuild.NewAnacondaStage(osbuild.NewAnacondaStageOptions(users)))
p.AddStage(osbuild.NewLoraxScriptStage(loraxScriptStageOptions(arch)))
p.AddStage(osbuild.NewDracutStage(dracutStageOptions(kernelVer, arch, []string{
dso := dracutStageOptions(kernelVer, arch, []string{
"anaconda",
"rdma",
"rngd",
"multipath",
"fcoe",
"fcoe-uefi",
"iscsi",
"lunmask",
"multipath",
"nfs",
})))
"nvdimm", // non-volatile DIMM firmware (provides nfit, cuse, and nd_e820)
"nvmf",
"rdma",
"rngd",
})
p.AddStage(osbuild.NewDracutStage(dso))
p.AddStage(osbuild.NewSELinuxConfigStage(&osbuild.SELinuxConfigStageOptions{State: osbuild.SELinuxStatePermissive}))
return p