diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-09-04 23:42:50 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-09-05 00:06:47 +0200 |
commit | 239c6e276214813f59f761c9dc5cc0e9d266b49b (patch) | |
tree | 2c26f92f1e01ab081a033ce16b14b40f223c9f37 /gnu/system/mapped-devices.scm | |
parent | 7ca87354db53fd1e1a7a3dfeddb9a598ea064bbe (diff) | |
download | guix-239c6e276214813f59f761c9dc5cc0e9d266b49b.tar guix-239c6e276214813f59f761c9dc5cc0e9d266b49b.tar.gz |
system: Use 'source-module-closure' where needed.
* gnu/system/vm.scm (%vm-module-closure): Remove.
(expression->derivation-in-linux-vm): Use 'source-module-closure'
instead of %VM-MODULE-CLOSURE.
(qemu-image): Likewise.
* gnu/system/linux-initrd.scm (expression->initrd): Likewise.
(flat-linux-module-directory, base-initrd): Likewise.
* gnu/system/mapped-devices.scm (open-luks-device): Likewise.
Diffstat (limited to 'gnu/system/mapped-devices.scm')
-rw-r--r-- | gnu/system/mapped-devices.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/system/mapped-devices.scm b/gnu/system/mapped-devices.scm index 7b91fcfc41..2ce35eaa07 100644 --- a/gnu/system/mapped-devices.scm +++ b/gnu/system/mapped-devices.scm @@ -20,6 +20,7 @@ (define-module (gnu system mapped-devices) #:use-module (guix gexp) #:use-module (guix records) + #:use-module (guix modules) #:use-module (gnu services) #:use-module (gnu services shepherd) #:autoload (gnu packages cryptsetup) (cryptsetup) @@ -95,8 +96,8 @@ (define (open-luks-device source target) "Return a gexp that maps SOURCE to TARGET as a LUKS device, using 'cryptsetup'." - (with-imported-modules '((gnu build file-systems) - (guix build bournish)) + (with-imported-modules (source-module-closure + '((gnu build file-systems))) #~(let ((source #$source)) ;; XXX: 'use-modules' should be at the top level. (use-modules (rnrs bytevectors) ;bytevector? |