[PATCH] linux-modules: Ignore nonexistent module files on boot.

  • Done
  • quality assurance status badge
Details
One participant
  • Hilton Chain
Owner
unassigned
Submitted by
Hilton Chain
Severity
normal

Debbugs page

H
H
Hilton Chain wrote on 17 Mar 01:52 -0700
(address . guix-patches@gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
219ed2009b2279a16d4fc4ca9bf773f73d7d07cd.1710662827.git.hako@ultrarare.space
This is a follow-up to 8f8ec56052766aa5105d672b77ad9eaca5c1ab3c, 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
---

gnu/build/linux-modules.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

Toggle diff (20 lines)
diff --git a/gnu/build/linux-modules.scm b/gnu/build/linux-modules.scm
index 12cb9c4ba6..68c32ff873 100644
--- a/gnu/build/linux-modules.scm
+++ b/gnu/build/linux-modules.scm
@@ -383,9 +383,10 @@ (define (load-linux-modules-from-directory modules directory)
(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)))

;;;

base-commit: 5267c6073c3bdc6ba7874fc776c23c928f1ee263
--
2.41.0
H
H
Hilton Chain wrote on 27 Mar 07:43 -0700
Re: bug#69841: Acknowledgement ([PATCH] linux-modules: Ignore nonexistent module files on boot.)
(address . 69841-done@debbugs.gnu.org)
87jzlnn3b3.wl-hako@ultrarare.space
Applied as 7995816ec4c38e447a2dcbeb33243180709e177d, closing.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 69841@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 69841
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch