Enable nfit modules in uki paths

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka 2025-05-27 16:21:44 +02:00
parent 917540d0a0
commit 00d9e81d9d
No known key found for this signature in database
GPG Key ID: FF934753A9D6AC56
2 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,10 @@ func GenericKernelDrivers() []string {
"virtio_scsi",
"xhci_hcd",
"xhci_pci",
"nfit", // For http boot NFIT memory mapping
"libnvdimm", // For http boot NFIT memory mapping
"nd_pmem", // For http boot NFIT memory mapping
"dax_pmem", // For http boot NFIT memory mapping
}
}

View File

@ -362,6 +362,8 @@ func (s *State) UKILoadKernelModules(g *herd.Graph) error {
return g.Add(cnst.OpUkiKernelModules,
herd.WithDeps(cnst.OpUkiBaseMounts, cnst.OpUkiPivotToSysroot),
herd.WithCallback(func(_ context.Context) error {
// Run depmod to ensure all modules are loaded and modules.dep updated
_, _ = internalUtils.CommandWithPath("depmod -a")
drivers, err := kdetect.ProbeKernelModules("")
if err != nil {
internalUtils.KLog.Logger.Err(err).Msg("Detecting needed modules")