guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#30604] [PATCH v9 7/7] linux-initrd: Use module-aliases->module-file


From: Danny Milosavljevic
Subject: [bug#30604] [PATCH v9 7/7] linux-initrd: Use module-aliases->module-file-names, too.
Date: Fri, 9 Mar 2018 23:26:50 +0100

On Sun,  4 Mar 2018 02:09:14 +0100
Danny Milosavljevic <address@hidden> wrote:

> --- a/gnu/system/linux-initrd.scm
> +++ b/gnu/system/linux-initrd.scm
> @@ -161,17 +161,17 @@ the derivations referenced by EXP are automatically 
> copied to the initrd."
>                      #:references-graphs `(("init-closure" ,init)
>                                            ("modprobe-closure" ,modprobe))))
>  
> -(define (flat-linux-module-directory linux modules)
> -  "Return a flat directory containing the Linux kernel modules listed in
> -MODULES and taken from LINUX."
> +(define (flat-linux-module-directory linux aliases)
> +  "Return a flat directory containing the Linux kernel modules resolved by
> +ALIASES and taken from LINUX."
...
> +          (define (find-only-entry directory)
> +            (match (scandir directory)
> +             (("." ".." basename)
> +              (string-append directory "/" basename))))

Probably unsafe since the order is not guaranteed.

Attachment: pgp7V5g1wO8Ed.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]