aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2018-07-01 18:53:38 +0100
committerChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2019-02-24 20:34:02 +0000
commit67b90bd3e2839f49f7f751c9a150bf69d5300e71 (patch)
treebac0b0d8a0ad947bb064ac313a9abac930aa8aa1
parent244bcde102edcde449d669c97a7245167ce377ea (diff)
downloadgnu-guix-67b90bd3e2839f49f7f751c9a150bf69d5300e71.tar
gnu-guix-67b90bd3e2839f49f7f751c9a150bf69d5300e71.tar.gz
Work around a issue in grootfs when unpacking tar archives
-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)))