summary refs log tree commit diff
path: root/gnu/build/linux-modules.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/build/linux-modules.scm')
-rw-r--r--gnu/build/linux-modules.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/build/linux-modules.scm b/gnu/build/linux-modules.scm
index a28908fe4d..d69bcbf5a2 100644
--- a/gnu/build/linux-modules.scm
+++ b/gnu/build/linux-modules.scm
@@ -114,7 +114,7 @@ contains module names, not actual file names."
       (match tokens
        ((token rest ...)
         (if (string=? (string-take-right token 1) ":") ; section
-            (loop value rest (string-trim-both token))
+            (loop value rest (string-trim-both (string-drop-right token 1)))
             (loop (cons (cons section token) value) rest section)))
        (()
         value))))