Skip to content

Commit

Permalink
anaconda-installer: disable some dracut modules
Browse files Browse the repository at this point in the history
We explicitly list dracut modules to be enabled, in the live-installer
package set we remove a few packages which make these modules
unavailable.
  • Loading branch information
supakeen authored and thozza committed Oct 12, 2023
1 parent cb56f11 commit 99be7ce
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions pkg/manifest/anaconda_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,18 +275,32 @@ func (p *AnacondaInstaller) serialize() osbuild.Pipeline {
}))
}

dracutModules := append(
p.AdditionalDracutModules,
"anaconda",
"rdma",
"rngd",
"multipath",
"fcoe",
"fcoe-uefi",
"iscsi",
"lunmask",
"nfs",
)
var dracutModules []string

if p.Type == AnacondaInstallerTypePayload {
dracutModules = append(
p.AdditionalDracutModules,
"anaconda",
"rdma",
"rngd",
"multipath",
"fcoe",
"fcoe-uefi",
"iscsi",
"lunmask",
"nfs",
)
} else if p.Type == AnacondaInstallerTypeLive {
dracutModules = append(
p.AdditionalDracutModules,
"anaconda",
"rdma",
"rngd",
)
} else {
panic("invalid anaconda installer type")
}

dracutOptions := dracutStageOptions(p.kernelVer, p.Biosdevname, dracutModules)
dracutOptions.AddDrivers = p.AdditionalDrivers
pipeline.AddStage(osbuild.NewDracutStage(dracutOptions))
Expand Down

0 comments on commit 99be7ce

Please sign in to comment.