Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

propagate SOURCE_DATE_EPOCH when calling systemd-repart #1834

Merged
merged 1 commit into from
Aug 24, 2023
Merged

propagate SOURCE_DATE_EPOCH when calling systemd-repart #1834

merged 1 commit into from
Aug 24, 2023

Conversation

malt3
Copy link
Contributor

@malt3 malt3 commented Aug 24, 2023

With this change, setting Environment=SOURCE_DATE_EPOCH=0 in the mkosi config, mkosi will propagate the variable to systemd-repart.
systemd-repart calls mksquashfs and other mkfs tools.
Some mkfs tools already respect SOURCE_DATE_EPOCH, resulting in predictable timestamps in squashfs partitions (and maybe others).

Copy link
Contributor

@behrmann behrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, though I do think we should propagate SOURCE_DATE_EPOCH to every run invocation.

@malt3
Copy link
Contributor Author

malt3 commented Aug 24, 2023

Makes sense, though I do think we should propagate SOURCE_DATE_EPOCH to every run invocation.

Sounds like a good idea. I'll do a follow up PR after understanding how run works. Or do you prefer that to happen in this PR?

@DaanDeMeyer DaanDeMeyer merged commit 70aaa96 into systemd:main Aug 24, 2023
@malt3 malt3 deleted the feat/repart-source-date-epoch branch August 24, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants