mirror of
https://github.com/kairos-io/immucore.git
synced 2025-08-01 22:38:01 +00:00
Enable nfit modules in uki paths
Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
parent
917540d0a0
commit
00d9e81d9d
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user