summaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/pack.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index 70239b64de..414e2d45f3 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"))