summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix/docker.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/docker.scm b/guix/docker.scm
index c6e9c6fee5..0f917f08bc 100644
--- a/guix/docker.scm
+++ b/guix/docker.scm
@@ -197,9 +197,11 @@ SRFI-19 time-utc object, as the creation time in metadata."
;; Initialize /var/guix, assuming PREFIX points to a profile.
(install-database-and-gc-roots "." database prefix))
+ (mkdir-p "gnu/store")
(apply invoke "tar" "-cf" "layer.tar"
`(,@transformation-options
,@%tar-determinism-options
+ "gnu"
,@paths
,@(if database '("var") '())
,@(map symlink-source symlinks)))