summary refs log tree commit diff
path: root/gnu/build
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-07-29 17:53:12 +0200
committerLudovic Courtès <ludo@gnu.org>2018-07-29 18:50:28 +0200
commitd2a1cf45f74f4be67bd51068fc531a1b8ae54536 (patch)
tree03dc315989ab663d25e7fe1de23b5a4992bc55b3 /gnu/build
parent5b6823907216d6c6c98fdb962f2005f154328878 (diff)
downloadguix-d2a1cf45f74f4be67bd51068fc531a1b8ae54536.tar.gz
linux-initrd: Improve check of initrd modules.
Previously we would not strip the ".ko" suffix if present.

* gnu/build/linux-modules.scm (file-name->module-name): Export.
* gnu/system/mapped-devices.scm (check-device-initrd-modules): Use
'file-name->module-name' instead of 'normalize-module-name'.
Diffstat (limited to 'gnu/build')
-rw-r--r--gnu/build/linux-modules.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/build/linux-modules.scm b/gnu/build/linux-modules.scm
index 2ee2f1771f..b06c576441 100644
--- a/gnu/build/linux-modules.scm
+++ b/gnu/build/linux-modules.scm
@@ -33,6 +33,7 @@
             module-aliases
             module-dependencies
             normalize-module-name
+            file-name->module-name
             recursive-module-dependencies
             modules-loaded
             module-loaded?