Skip to content

Commit

Permalink
initrd: Start on reproducible build
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-weiss committed Feb 3, 2025
1 parent b0dfc0e commit dd32098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ebcl/tools/initrd/initrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ def create_initrd(self) -> Optional[str]:

# reproducible build
self.config.fake.run_sudo(
'find . -exec touch -h -a -m -d $(date --utc --date=@${SOURCE_DATE_EPOCH:-$(date +%s)} +%Y-%m-%d) {} \;', cwd=self.target_dir)
'find . -exec touch -h -a -m -d $(date --utc --date=@${SOURCE_DATE_EPOCH:-$(date +%s)} +%Y-%m-%d) {} \;',
cwd=self.target_dir)

# Create initrd image
os.makedirs(os.path.dirname(image_path), exist_ok=True)
Expand Down

0 comments on commit dd32098

Please sign in to comment.