summaryrefslogtreecommitdiff
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-05-20 10:22:21 +0100
commitfa3fc43f55d2ea992895826b74ba6e6e82fac7fe (patch)
treec7be627d703ad2096d05193e295588cb48123676
parentedb902fe7b5a9b6687df29429cb1abea02cad9ff (diff)
downloadgnu-guix-fa3fc43f55d2ea992895826b74ba6e6e82fac7fe.tar
gnu-guix-fa3fc43f55d2ea992895826b74ba6e6e82fac7fe.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 7fe83d9797..537892d907 100644
--- a/guix/docker.scm
+++ b/guix/docker.scm
@@ -203,9 +203,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)))