Skip to content

fix: refresh .link files via udev and manage networkd reliably#637

Merged
vchepkov merged 1 commit into
voxpupuli:masterfrom
vchepkov:fix-link
Jul 1, 2026
Merged

fix: refresh .link files via udev and manage networkd reliably#637
vchepkov merged 1 commit into
voxpupuli:masterfrom
vchepkov:fix-link

Conversation

@vchepkov

Copy link
Copy Markdown
Contributor

Pull Request (PR) description

.link files in /etc/systemd/network are read by systemd-udevd, not
systemd-networkd, so notifying the networkd service never re-applied
changed .link files. Route them to a new udev reload exec
(udevadm control --reload && udevadm trigger --subsystem-match=net)
instead.

Also drop the systemd_internal_services fact guard on manage_networkd
(incorporates #596): networkd is an external package managed by this
module, so the fact isn't populated until a second Puppet run, leaving
the service unmanaged on the first run.

@vchepkov vchepkov requested review from kenyon and traylenator June 28, 2026 15:23
@vchepkov vchepkov added the bug Something isn't working label Jun 28, 2026

@kenyon kenyon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

TIL that link files are read by systemd-udevd, not systemd-networkd 🙌

@vchepkov

Copy link
Copy Markdown
Contributor Author

It would work either way, but added ordering to reduce churn

@vchepkov vchepkov merged commit 27f082f into voxpupuli:master Jul 1, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants