aboutsummaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-10-17 12:20:39 +0200
committerLudovic Courtès <ludo@gnu.org>2015-10-17 12:20:39 +0200
commit34a7bfb049572fdf02e593ce94dde68736bd1268 (patch)
tree2dea29abd0d6c8afddb3afb9e30c85f8d458c09e /gnu/system
parent4375dcf36c21f748a5118c6f3faf1e14450e1e7b (diff)
downloadguix-34a7bfb049572fdf02e593ce94dde68736bd1268.tar
guix-34a7bfb049572fdf02e593ce94dde68736bd1268.tar.gz
install: Set the mtime in the binary tarball to 1.
Reported by anthk_ on #guix in Sept. 2015. * gnu/system/install.scm (self-contained-tarball): Use --mtime=@1 instead of --mtime=@0.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/install.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 1686cbdb06..93a6f18c49 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -76,9 +76,12 @@ under /root/.guix-profile where GUIX is installed."
(with-directory-excursion %root
(zero? (system* "tar" "--xz" "--format=gnu"
- ;; avoid non-determinism in the archive
+ ;; Avoid non-determinism in the archive. Use
+ ;; mtime = 1, not zero, because that is what the
+ ;; daemon does for files in the store (see the
+ ;; 'mtimeStore' constant in local-store.cc.)
"--sort=name"
- "--mtime=@0" ;for files in /var/guix
+ "--mtime=@1" ;for files in /var/guix
"--owner=root:0"
"--group=root:0"