linux-initrd: Compress cpio archives deterministically.

* gnu/build/linux-initrd.scm (write-cpio-archive): Use '--no-name'.
This commit is contained in:
Ludovic Courtès 2015-09-09 23:01:51 +02:00
parent 363ccf9fe2
commit 0334ef2ab0

View file

@ -72,7 +72,9 @@ (define files
#: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))