diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2016-11-10 17:54:57 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2016-11-10 18:01:44 +0100 |
| commit | 5e7eaccb14382b2d49bc8b4fc10fc57876d6c56f (patch) | |
| tree | 0301d16f01a8f0f5d89f805950be5d87547c00e0 /gnu | |
| parent | 9e4e431e049fae3f1121c3be22cf13b174404ba8 (diff) | |
linux-container: Use 'source-module-closure' when generating the script.
* gnu/system/linux-container.scm (container-script)[script]: Use
'source-module-closure' in 'with-imported-modules' form.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/system/linux-container.scm | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gnu/system/linux-container.scm b/gnu/system/linux-container.scm index d3c0036f47b..189f9efa79e 100644 --- a/gnu/system/linux-container.scm +++ b/gnu/system/linux-container.scm | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2015 David Thompson <davet@gnu.org> | 2 | ;;; Copyright © 2015 David Thompson <davet@gnu.org> |
| 3 | ;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org> | ||
| 3 | ;;; | 4 | ;;; |
| 4 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| 5 | ;;; | 6 | ;;; |
| @@ -24,6 +25,7 @@ | |||
| 24 | #:use-module (guix gexp) | 25 | #:use-module (guix gexp) |
| 25 | #:use-module (guix derivations) | 26 | #:use-module (guix derivations) |
| 26 | #:use-module (guix monads) | 27 | #:use-module (guix monads) |
| 28 | #:use-module (guix modules) | ||
| 27 | #:use-module (gnu build linux-container) | 29 | #:use-module (gnu build linux-container) |
| 28 | #:use-module (gnu services) | 30 | #:use-module (gnu services) |
| 29 | #:use-module (gnu system) | 31 | #:use-module (gnu system) |
| @@ -87,14 +89,9 @@ that will be shared with the host system." | |||
| 87 | #:container? #t))) | 89 | #:container? #t))) |
| 88 | 90 | ||
| 89 | (define script | 91 | (define script |
| 90 | (with-imported-modules '((guix config) | 92 | (with-imported-modules (source-module-closure |
| 91 | (guix utils) | 93 | '((guix build utils) |
| 92 | (guix combinators) | 94 | (gnu build linux-container))) |
| 93 | (guix build utils) | ||
| 94 | (guix build syscalls) | ||
| 95 | (guix build bournish) | ||
| 96 | (gnu build file-systems) | ||
| 97 | (gnu build linux-container)) | ||
| 98 | #~(begin | 95 | #~(begin |
| 99 | (use-modules (gnu build linux-container) | 96 | (use-modules (gnu build linux-container) |
| 100 | (guix build utils)) | 97 | (guix build utils)) |
