diff options
author | Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 2020-05-23 11:30:16 +0200 |
---|---|---|
committer | Guix Patches Tester <> | 2020-05-24 21:36:09 +0100 |
commit | 5733d204eeb44e6954dce6abf073b095e19ebffa (patch) | |
tree | 6701f811eff7015122e9083a29146d291f5b2212 /gnu/system | |
parent | 98cf96b9090dad9af858c867f658c3f8dcc8b97a (diff) | |
download | patches-5733d204eeb44e6954dce6abf073b095e19ebffa.tar patches-5733d204eeb44e6954dce6abf073b095e19ebffa.tar.gz |
system: vm: Do not register-closures when cross-building to the Hurd.
This supports cross-building building a vm-image for the Hurd, running a
native qemu.
* gnu/system/vm.scm (qemu-image)[register-closures?]: Default to #f when
cross-compiling to the Hurd. Only create sql-schema when actually registering
closures.
Diffstat (limited to 'gnu/system')
-rw-r--r-- | gnu/system/vm.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 3e483fd86c..b343141c18 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -51,6 +51,7 @@ #:use-module (gnu packages zile) #:use-module (gnu packages linux) #:use-module (gnu packages admin) + #:use-module (gnu packages hurd) #:use-module (gnu bootloader) #:use-module (gnu bootloader grub) @@ -286,7 +287,8 @@ substitutable." os bootcfg-drv bootloader - (register-closures? (has-guix-service-type? os)) + (register-closures? (and (has-guix-service-type? os) + (not (hurd-target?)))) (inputs '()) copy-inputs? (substitutable? #t)) @@ -333,12 +335,13 @@ system that is passed to 'populate-root-file-system'." ((gnu build linux-boot) #:select (make-essential-device-nodes make-hurd-device-nodes)) - (guix store database) (guix build utils) (srfi srfi-26) (ice-9 binary-ports)) - (sql-schema #$schema) + (when #$register-closures? + (use-modules (guix store database)) + (sql-schema #$schema)) ;; Allow non-ASCII file names--e.g., 'nss-certs'--to be decoded. (setenv "GUIX_LOCPATH" |