[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#59066] [PATCH 1/1] linux-initrd: raw-initrd: Add keyword argument #
From: |
Ludovic Courtès |
Subject: |
[bug#59066] [PATCH 1/1] linux-initrd: raw-initrd: Add keyword argument #:pre-mount. |
Date: |
Fri, 11 Nov 2022 22:32:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hi!
Hilton Chain <hako@ultrarare.space> skribis:
> * gnu/system/linux-initrd.scm (raw-initrd): Add keyword argument #:pre-mount.
[...]
> + (pre-mount '())
> (mapped-devices '())
> (keyboard-layout #f)
> (helper-packages '())
> @@ -255,7 +256,8 @@ (define kodir
> (map spec->file-system
> '#$(map file-system->spec file-systems))
> #:pre-mount (lambda ()
> - (and #$@device-mapping-commands
> + (and #$@pre-mount
> + #$@device-mapping-commands
I think #:pre-mount should be a single gexp (instead of a list),
defaulting to #t. So we’d do:
(lambda () (and #$pre-mount #$@device-mapping-commands …))
WDYT?
Also could you update the docstring and ‘doc/guix.texi’ accordingly?
Thanks,
Ludo’.