mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
linux-modules: Ignore nonexistent module files on boot.
This is a follow-up to 8f8ec56052
, which only
covers building initrd, while the booting code still tries to load nonexistent
files for builtin modules.
* gnu/build/linux-modules.scm (load-linux-modules-from-directory): Ignore
nonexistent module files.
Change-Id: I09ef207e82397e915e671c8464b92bcf90f03dcf
This commit is contained in:
parent
3feb8f7f02
commit
7995816ec4
1 changed files with 4 additions and 3 deletions
|
@ -383,9 +383,10 @@ (define module-name->file-name
|
|||
(module-name-lookup directory))
|
||||
|
||||
(for-each (lambda (module)
|
||||
(load-linux-module* (module-name->file-name module)
|
||||
#:lookup-module module-name->file-name))
|
||||
modules))
|
||||
(when (file-exists? module)
|
||||
(load-linux-module* module
|
||||
#:lookup-module module-name->file-name)))
|
||||
(map module-name->file-name modules)))
|
||||
|
||||
|
||||
;;;
|
||||
|
|
Loading…
Reference in a new issue