diff --git a/internal/constants/constants.go b/internal/constants/constants.go index 7ad3a3b..1aee00d 100644 --- a/internal/constants/constants.go +++ b/internal/constants/constants.go @@ -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 } } diff --git a/pkg/state/steps_uki.go b/pkg/state/steps_uki.go index 22f5ba7..d564f60 100644 --- a/pkg/state/steps_uki.go +++ b/pkg/state/steps_uki.go @@ -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")