summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live/82-cleanup-udev-rules.chroot
AgeCommit message (Collapse)Author
2023-01-31Revert "Resolve resource deadlock for udev iface shuffle"Christian Poessinger
This reverts commit 8e6d765be123be9d937970ee96b7d6d0b5053ed5. This breaks existing configurations: https://forum.vyos.io/t/yesterday-and-todays-build-causes-network-interface-getting-corrupted-vyos-1-4-rolling-202301280924-amd64-iso
2023-01-29Resolve resource deadlock for udev iface shuffleRageLtMan
UDEV contains a default rule triggered early-on which renames all NICs by their index to eX, systemd-udevd subsequently renames the eX interface to ethX. Systemd-udevd can fail to rename the iface if it still has resource locks from the prior renaming which then fails to apply all manner of configurations resulting in a booted zombie which cannot handle L3 traffic. Fix the concern by removing 62-temporary-interface-rename.rules from /etc/udev/rules.d during the cleanup hook executed in data/live-build-config/hooks/live/82-cleanup-udev-rules.chroot. Testing: Boot-tested in OpenStack under identical infrastructure-as-code states. Verified DHCP-assigned routes, execution of cloud-init, and configuration stanzas injected through cloud-init applied to the FW and system.
2021-03-17systemd-udev: T3242: Add hook to prevent link_config redundancy callDmitriyEshenko