aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2018-07-01 18:53:38 +0100
committerChristopher Baines <mail@cbaines.net>2018-12-31 10:24:55 +0000
commitbf642747f460160bb6db4031d7190834949f5abb (patch)
treed4f4b3da1b37c5bd77ac9173de08a752918ac2bc
parent402c36c1d6299e0d916f4e96ef5bf47efcd4e330 (diff)
downloadguix-bf642747f460160bb6db4031d7190834949f5abb.tar
guix-bf642747f460160bb6db4031d7190834949f5abb.tar.gz
Work around a issue in grootfs when unpacking tar archivesworkaround-cloudfoundry-tar-unpacking-issue
-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)))