[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: linux-modules: Ignore nonexistent module files on boot.
From: |
guix-commits |
Subject: |
01/07: linux-modules: Ignore nonexistent module files on boot. |
Date: |
Wed, 27 Mar 2024 10:41:30 -0400 (EDT) |
hako pushed a commit to branch master
in repository guix.
commit 7995816ec4c38e447a2dcbeb33243180709e177d
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Sun Mar 17 13:38:58 2024 +0800
linux-modules: Ignore nonexistent module files on boot.
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 @@ needed."
(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)))
;;;
- branch master updated (3feb8f7f02 -> 0b38c9401b), guix-commits, 2024/03/27
- 03/07: gnu: Add tree-sitter-hcl., guix-commits, 2024/03/27
- 04/07: gnu: Add tree-sitter-ron., guix-commits, 2024/03/27
- 05/07: gnu: Add tree-sitter-ungrammar., guix-commits, 2024/03/27
- 02/07: gnu: Add tree-sitter-kdl., guix-commits, 2024/03/27
- 01/07: linux-modules: Ignore nonexistent module files on boot.,
guix-commits <=
- 07/07: home: services: bash: Reorder aliases., guix-commits, 2024/03/27
- 06/07: gnu: Add tree-sitter-matlab., guix-commits, 2024/03/27