guix system: Check for the lack of modules in the initrd.
authorLudovic Courtès <ludo@gnu.org>
Tue, 27 Feb 2018 13:55:43 +0000 (14:55 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 2 Mar 2018 12:53:15 +0000 (13:53 +0100)
commit424cea8083a4cee63290c80235aed61bd12affb1
treeb588b7552e1bcfa83f6304aa6c9d0215c6ee7b75
parentbc499b113a598c0e7863da9887a4133472985713
guix system: Check for the lack of modules in the initrd.

* guix/scripts/system.scm (check-mapped-devices): Take an OS instead of
a list of <mapped-device>.  Pass #:needed-for-boot? and #:initrd-modules
to CHECK.
(check-initrd-modules): New procedure.
(perform-action): Move 'check-mapped-devices' call first.  Add call to
'check-initrd-modules'.
* gnu/system/mapped-devices.scm (check-device-initrd-modules): New
procedure.
(check-luks-device): Add #:initrd-modules and #:needed-for-boot?.  Use
them to call 'check-device-initrd-modules'.
gnu/system/mapped-devices.scm
guix/scripts/system.scm