[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/13: linux-initrd: Avoid looking up builtin modules.
From: |
guix-commits |
Subject: |
02/13: linux-initrd: Avoid looking up builtin modules. |
Date: |
Fri, 8 Mar 2024 22:15:38 -0500 (EST) |
hako pushed a commit to branch master
in repository guix.
commit 8f8ec56052766aa5105d672b77ad9eaca5c1ab3c
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Mon Feb 26 13:47:13 2024 +0800
linux-initrd: Avoid looking up builtin modules.
* gnu/system/linux-initrd.scm (flat-linux-module-directory)
[build-exp]<builtin-modules,modules-to-lookup>: New variables.
<modules>: Use ‘modules-to-lookup’ to avoid looking up builtin modules.
Change-Id: I60fdae0211bb6632508b1c63582e013e78186cd1
---
gnu/system/linux-initrd.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm
index 58e95a1312..6236d25b9d 100644
--- a/gnu/system/linux-initrd.scm
+++ b/gnu/system/linux-initrd.scm
@@ -132,15 +132,27 @@ MODULES and taken from LINUX."
#~(begin
(use-modules (gnu build linux-modules)
(guix build utils)
+ (rnrs io ports)
(srfi srfi-1)
(srfi srfi-26))
(define module-dir
(string-append #$linux "/lib/modules"))
+ (define builtin-modules
+ (call-with-input-file
+ (first (find-files module-dir "modules.builtin$"))
+ (lambda (port)
+ (map file-name->module-name
+ (string-tokenize
+ (get-string-all port))))))
+
+ (define modules-to-lookup
+ (lset-difference string=? '#$modules builtin-modules))
+
(define modules
(let* ((lookup (cut find-module-file module-dir <>))
- (modules (map lookup '#$modules)))
+ (modules (map lookup modules-to-lookup)))
(append modules
(recursive-module-dependencies
modules
- branch master updated (c7c99aeb3c -> 52f9db6503), guix-commits, 2024/03/08
- 04/13: gnu: font-chiron-hei-hk: Update to 2.509., guix-commits, 2024/03/08
- 06/13: gnu: sway: Update to 1.9., guix-commits, 2024/03/08
- 01/13: gnu: patatt: Update to 0.6.3., guix-commits, 2024/03/08
- 12/13: gnu: qbittorrent-enhanced-nox: Rename to qbittorrent-enhanced-no-x., guix-commits, 2024/03/08
- 08/13: gnu: font-lxgw-wenkai: Update to 1.320., guix-commits, 2024/03/08
- 05/13: gnu: font-chiron-sung-hk: Split outputs., guix-commits, 2024/03/08
- 02/13: linux-initrd: Avoid looking up builtin modules.,
guix-commits <=
- 03/13: gnu: font-chiron-sung-hk: Update to 1.011., guix-commits, 2024/03/08
- 07/13: gnu: sway: Update package style., guix-commits, 2024/03/08
- 09/13: gnu: font-lxgw-wenkai-tc: Update to 1.320., guix-commits, 2024/03/08
- 11/13: gnu: qbittorrent-no-x: Actually remove qtsvg from inputs., guix-commits, 2024/03/08
- 10/13: gnu: qbittorrent-enhanced: Update to 4.6.3.10., guix-commits, 2024/03/08
- 13/13: gnu: Add sioyek., guix-commits, 2024/03/08