From a0eb22d5fbc5f77fe22a947946ed89ff85759ab0 Mon Sep 17 00:00:00 2001 From: Jan Zerebecki Date: Fri, 9 Jun 2023 12:46:15 +0200 Subject: [PATCH] make times in iso images reproducible --- modules/KIWIIsoLinux.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/KIWIIsoLinux.pm b/modules/KIWIIsoLinux.pm index ef94687..5a441b9 100644 --- a/modules/KIWIIsoLinux.pm +++ b/modules/KIWIIsoLinux.pm @@ -1021,6 +1021,15 @@ sub createISO { } } #========================================== + # Add mkisofs parameters for reproducible output + #------------------------------------------ + if(!$ENV{SOURCE_DATE_EPOCH}) { + $kiwi->error("Failed to read environment variable SOURCE_DATE_EPOCH, please set it."); + $kiwi->failed(); + return; + } + $para = "$para -reproducible-date $ENV{SOURCE_DATE_EPOCH}" + #========================================== # Call mkisofs first stage #------------------------------------------ # log sort file