From 833480cc1fa934b64a192fe7b2401491d4f169df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Sat, 20 Apr 2019 14:42:53 +0200
Subject: [PATCH] vm: Reset file timestamps in ISO images.

Partly fixes <https://bugs.gnu.org/35283>.
Reported by Florian Pelz <pelzflorian@pelzflorian.de>.

* gnu/build/vm.scm (make-iso9660-image): Pass "-volume_date
all_file_dates =1".
---
 gnu/build/vm.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index e15ca4d5fb1..75f1394d1a5 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -471,6 +471,10 @@ (define items
                 "mnt=/tmp/root/mnt"
                 "-path-list" "-"
                 "--"
+
+                ;; Set all timestamps to 1.
+                "-volume_date" "all_file_dates" "=1"
+
                 "-volid" (string-upcase volume-id)
                 (if volume-uuid
                     `("-volume_date" "uuid"
-- 
GitLab