Paste number 154153: possible fix for (guix build syscalls) issue

Paste number 154153: possible fix for (guix build syscalls) issue
Pasted by: civodul
When:6 years, 3 months ago
Share:Tweet this! | http://paste.lisp.org/+3AY1
Channel:None
Paste contents:
Raw Source | XML | Display As
diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm
index 48b855b..f80b748 100644
--- a/gnu/system/linux-initrd.scm
+++ b/gnu/system/linux-initrd.scm
@@ -79,10 +79,12 @@ MODULES is a list of Guile module names to be embedded in the initrd."
                         #:gzip (string-append #$gzip "/bin/gzip"))))
 
    (gexp->derivation name builder
-                     #:modules '((guix cpio)
+                     #:modules (delete-duplicates
+                                `((guix cpio)
                                   (guix build utils)
                                   (guix build store-copy)
-                                 (gnu build linux-initrd))
+                                  (gnu build linux-initrd)
+                                  ,@modules))
                      #:references-graphs `(("closure" ,init)))))
 
 (define (flat-linux-module-directory linux modules)

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.