Message ID | 219ed2009b2279a16d4fc4ca9bf773f73d7d07cd.1710662827.git.hako@ultrarare.space |
---|---|
State | New |
Headers | show |
Series | [bug#69841] linux-modules: Ignore nonexistent module files on boot. | expand |
Applied as 7995816ec4c38e447a2dcbeb33243180709e177d, closing.
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))) ;;;