Skip to content

Commit

Permalink
coreos-installer: install only the required dracut modules
Browse files Browse the repository at this point in the history
Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>

coreos-installer: install only the required dracut modules

Install only the minimal number of dracut modules required
by the coreos installer to avoid issues during the installation.

Resolves: fedora-iot/iot-distro#5

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
  • Loading branch information
mmartinv authored and achilleas-k committed Oct 4, 2024
1 parent 674b813 commit cd903c0
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions pkg/manifest/coreos_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,34 @@ func (p *CoreOSInstaller) serialize() osbuild.Pipeline {

dracutModules := append(
p.AdditionalDracutModules,
"systemd",
"systemd-initrd",
"fips",
"modsign",
"rescue",
"i18n",
"kernel-modules",
"kernel-modules-extra",
"network-manager",
"network",
"drm",
"coreos-installer",
"fdo",
"lvm",
"terminfo",
"fs-lib",
"dracut-systemd",
"debug",
"shutdown",
)

dracutStageOptions := dracutStageOptions(p.kernelVer, p.Biosdevname, dracutModules)
if p.Biosdevname {
dracutModules = append(dracutModules, "biosdevname")
}
dracutStageOptions := &osbuild.DracutStageOptions{
Kernel: []string{p.kernelVer},
Modules: dracutModules,
Install: []string{"/.buildstamp"},
}
if p.FDO != nil && p.FDO.DiunPubKeyRootCerts != "" {
pipeline.AddStage(osbuild.NewFDOStageForRootCerts(p.FDO.DiunPubKeyRootCerts))
dracutStageOptions.Install = []string{"/fdo_diun_pub_key_root_certs.pem"}
Expand Down

0 comments on commit cd903c0

Please sign in to comment.