[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: pack: Make bit-reproducible squashfs images.
From: |
guix-commits |
Subject: |
04/06: pack: Make bit-reproducible squashfs images. |
Date: |
Fri, 13 Mar 2020 12:34:08 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit b829864d747b3b24ef37cafe36e889527b060d4d
Author: Ludovic Courtès <address@hidden>
AuthorDate: Fri Mar 13 13:02:01 2020 +0100
pack: Make bit-reproducible squashfs images.
Reported by Josh Marshall <address@hidden>.
* guix/scripts/pack.scm (squashfs-image)[build](mksquashfs): Always pass
"-all-time", "-mkfs-time", "-force-uid", and "-force-gid" to 'mksquashfs'.
---
guix/scripts/pack.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index 70239b6..414e2d4 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -366,7 +366,15 @@ added to the pack."
(define entry-point #$entry-point)
(define (mksquashfs args)
- (apply invoke "mksquashfs" args))
+ (apply invoke "mksquashfs"
+ `(,@args
+
+ ;; Set file times and the file system creation time to
+ ;; one second after the Epoch.
+ "-all-time" "1" "-mkfs-time" "1"
+
+ ;; Reset all UIDs and GIDs.
+ "-force-uid" "0" "-force-gid" "0")))
(setenv "PATH" (string-append #$archiver "/bin"))
- branch master updated (10b99dd -> f292c50), guix-commits, 2020/03/13
- 01/06: weather: Exit with non-zero when coverage is below 100%., guix-commits, 2020/03/13
- 02/06: weather: '--coverage' filters out non-package objects., guix-commits, 2020/03/13
- 03/06: pack: Factorize 'mksquashfs' invocations., guix-commits, 2020/03/13
- 05/06: pack: Do not create a squashfs "recovery file"., guix-commits, 2020/03/13
- 04/06: pack: Make bit-reproducible squashfs images.,
guix-commits <=
- 06/06: maint: Add 'etc/release-manifest.scm'., guix-commits, 2020/03/13