diff options
author | Ludovic Courtès <ludo@gnu.org> | 2025-07-06 16:31:00 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2025-07-18 00:57:25 +0200 |
commit | 62bf9a7cc79d24e7edc2b56d6dde6e77eebc537e (patch) | |
tree | 7b741e39aa7321e51c8c5d041d1111ee5418ff2e /guix | |
parent | 951e39718a00cf3f91e8c8d4b4b5661715a27416 (diff) |
mapped-devices: Add ‘arguments’ field.
Fixes <https://issues.guix.gnu.org/70826>.
This allows users to specify extra arguments specific to the underlying
mapped device type.
* gnu/system/mapped-devices.scm (<mapped-device>)[arguments]: New field.
(device-mapping-service-type): Honor it.
* guix/scripts/system.scm (check-mapped-devices): Likewise.
* gnu/system/linux-initrd.scm (raw-initrd): Likewise.
* doc/guix.texi (Mapped Devices): Document it.
Reported-by: 45mg <45mg.writes@gmail.com>
Change-Id: Idef5a3e68535c412f13bae9a92c81c49053d4f4a
Diffstat (limited to 'guix')
-rw-r--r-- | guix/scripts/system.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 23eb215561..8a56f1cc63 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -680,9 +680,10 @@ procedure of its type." (mapped-device-type md)))) ;; We expect CHECK to raise an exception with a detailed ;; '&message' if something goes wrong. - (check md + (apply check md #:needed-for-boot? (needed-for-boot? md) - #:initrd-modules initrd-modules))) + #:initrd-modules initrd-modules + (mapped-device-arguments md)))) (operating-system-mapped-devices os))) (define (check-initrd-modules os) |