diff options
-rw-r--r-- | gnu/build/linux-modules.scm | 7 |
1 files 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))) ;;; |