Skip to content

Commit

Permalink
make times in iso images reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
JanZerebecki committed Jun 9, 2023
1 parent a15501e commit a0eb22d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/KIWIIsoLinux.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0eb22d

Please sign in to comment.