unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#69841] [PATCH] linux-modules: Ignore nonexistent module files on boot.
@ 2024-03-17  8:52 Hilton Chain via Guix-patches via
       [not found] ` <handler.69841.B.171066563620411.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Hilton Chain via Guix-patches via @ 2024-03-17  8:52 UTC (permalink / raw)
  To: 69841
  Cc: Hilton Chain, Leo Famulari, Tobias Geerinckx-Rice, Wilko Meyer,
	Ludovic Courtès

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(-)

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)))

 \f
 ;;;

base-commit: 5267c6073c3bdc6ba7874fc776c23c928f1ee263
--
2.41.0




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#69841: Acknowledgement ([PATCH] linux-modules: Ignore nonexistent module files on boot.)
       [not found] ` <handler.69841.B.171066563620411.ack@debbugs.gnu.org>
@ 2024-03-27 14:43   ` Hilton Chain via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: Hilton Chain via Guix-patches via @ 2024-03-27 14:43 UTC (permalink / raw)
  To: 69841-done
  Cc: Wilko Meyer, Ludovic Courtès, Tobias Geerinckx-Rice,
	Leo Famulari

Applied as 7995816ec4c38e447a2dcbeb33243180709e177d, closing.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-27 14:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-17  8:52 [bug#69841] [PATCH] linux-modules: Ignore nonexistent module files on boot Hilton Chain via Guix-patches via
     [not found] ` <handler.69841.B.171066563620411.ack@debbugs.gnu.org>
2024-03-27 14:43   ` bug#69841: Acknowledgement ([PATCH] linux-modules: Ignore nonexistent module files on boot.) Hilton Chain via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).