summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-09-09 23:01:51 +0200
committerLudovic Courtès <ludo@gnu.org>2015-09-09 23:27:10 +0200
commit0334ef2ab06952df5c6a7582781d16d807e09ea7 (patch)
tree11fe8912e46282b1a90a3936ea6c5385e4ffcb59 /gnu
parent363ccf9fe2e67606edc2ecf0ca70824e7adc1ce0 (diff)
downloadguix-0334ef2ab06952df5c6a7582781d16d807e09ea7.tar.gz
linux-initrd: Compress cpio archives deterministically.
* gnu/build/linux-initrd.scm (write-cpio-archive): Use '--no-name'.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/build/linux-initrd.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/build/linux-initrd.scm b/gnu/build/linux-initrd.scm
index e26c067b49..c65b5aacfa 100644
--- a/gnu/build/linux-initrd.scm
+++ b/gnu/build/linux-initrd.scm
@@ -72,7 +72,9 @@ COMPRESS? is true, compress it using GZIP.  On success, return OUTPUT."
                                #:file->header cpio:file->cpio-header*)))
 
   (or (not compress?)
-      (and (zero? (system* gzip "--best" output))
+      ;; Use '--no-name' so that gzip records neither a file name nor a time
+      ;; stamp in its output.
+      (and (zero? (system* gzip "--best" "--no-name" output))
            (rename-file (string-append output ".gz")
                         output))
       output))