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

Create minion_id with reproducible mtime #57

Open
wants to merge 1 commit into
base: release/3002.2
Choose a base branch
from

Conversation

bmwiedemann
Copy link
Member

Create minion_id with reproducible mtime.

without this patch
my tests showed, that /etc/salt/minion_id ghost file mtime varied from date.

This patch was done while working on reproducible builds for openSUSE.

without this patch
my tests showed, that /etc/salt/minion_id ghost file mtime varied from date.
Copy link
Contributor

@vzhestkov vzhestkov left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@meaksh not sure how should we process the PRs from this project, what do you think?

@@ -1277,7 +1277,7 @@ install -Dpm 0755 scripts/suse/watchdog/salt-daemon-watcher %{buildroot}%{_bindi
#
## install config files
install -Dpm 0640 conf/minion %{buildroot}%{_sysconfdir}/salt/minion
install -Dpm 0640 /dev/null %{buildroot}%{_sysconfdir}/salt/minion_id
touch -m 0640 -r conf/minion %{buildroot}%{_sysconfdir}/salt/minion_id # ghost file
Copy link
Contributor

Choose a reason for hiding this comment

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

So in this case it just uses the time from conf/minion, not the content. Looks reasonable.

@meaksh
Copy link
Member

meaksh commented Apr 26, 2022

@vzhestkov we can merge this PR and then we would need to create SRs ourselves.

@bmwiedemann
Copy link
Member Author

Can someone please merge then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants