diff options
| author | Sergio Pastor Pérez <sergio.pastor-perez@inria.fr> | 2026-08-28 12:23:59 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-09-02 12:16:02 +0200 |
| commit | be08b720825a09937e15a64c4c3ff81f56ddbe1f (patch) | |
| tree | 30879e3660288c440a40a0dfe2903492dfdcc1c0 /gnu/system/linux-initrd.scm | |
| parent | 223158aae1b0e8e94c45cecba695d8fc59e5bc4a (diff) | |
linux-initrd: Adjust 'base-initrd-modules' to fallback to 'linux-libre'.
* gnu/system/linux-initrd.scm (base-initrd-modules): Adjust to fallback to
'linux-libre' modules if the provided kernel package misses the
'base-initrd-modules' package property.
Fixes: #10859
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #10885
Diffstat (limited to 'gnu/system/linux-initrd.scm')
| -rw-r--r-- | gnu/system/linux-initrd.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm index b56e6cf5d42..6ace2985dae 100644 --- a/gnu/system/linux-initrd.scm +++ b/gnu/system/linux-initrd.scm | |||
| @@ -375,7 +375,11 @@ FILE-SYSTEMS." | |||
| 375 | (%current-system)))) | 375 | (%current-system)))) |
| 376 | "Return a list of modules tailored to KERNEL for SYSTEM to include in the | 376 | "Return a list of modules tailored to KERNEL for SYSTEM to include in the |
| 377 | initrd by default." | 377 | initrd by default." |
| 378 | (assoc-ref (assoc-ref (package-properties kernel) 'base-initrd-modules) | 378 | (define (modules package) |
| 379 | (assoc-ref (package-properties package) 'base-initrd-modules)) | ||
| 380 | |||
| 381 | (assoc-ref (or (modules kernel) | ||
| 382 | (modules linux-libre)) | ||
| 379 | system)) | 383 | system)) |
| 380 | 384 | ||
| 381 | (define* (base-initrd file-systems | 385 | (define* (base-initrd file-systems |
