mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
951e39718a
commit
62bf9a7cc7
4 changed files with 19 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue