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

fix: stop dnf from overwriting motd on azure linux nodes if motd is enabled on the node #5355

Merged
merged 11 commits into from
Dec 5, 2024

Conversation

UtheMan
Copy link
Contributor

@UtheMan UtheMan commented Dec 3, 2024

No description provided.

@@ -247,6 +247,9 @@ else
fi

if [[ "${MESSAGE_OF_THE_DAY}" != "" ]]; then
if isMarinerOrAzureLinux "$OS" && [ -f /etc/dnf/automatic.conf ]; then
sed -i "s/emit_via = motd/emit_via = stdio/g" /etc/dnf/automatic.conf
Copy link
Contributor

Choose a reason for hiding this comment

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

where does it go when stdio is used ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Context: https://dnf.readthedocs.io/en/latest/automatic.html
just to standard output, i believe this particualr part of dnf is triggered by a systemd unit so that would go into journald

@UtheMan UtheMan disabled auto-merge December 5, 2024 19:29
@UtheMan UtheMan merged commit a8cf455 into dev Dec 5, 2024
15 of 16 checks passed
@UtheMan UtheMan deleted the mikolaj/block-motd-overwrite-azure-linux branch December 5, 2024 21:19
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.

3 participants