From 8e6d765be123be9d937970ee96b7d6d0b5053ed5 Mon Sep 17 00:00:00 2001 From: RageLtMan Date: Sun, 29 Jan 2023 13:35:01 -0500 Subject: Resolve resource deadlock for udev iface shuffle 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. --- data/live-build-config/hooks/live/82-cleanup-udev-rules.chroot | 1 + 1 file changed, 1 insertion(+) (limited to 'data/live-build-config') diff --git a/data/live-build-config/hooks/live/82-cleanup-udev-rules.chroot b/data/live-build-config/hooks/live/82-cleanup-udev-rules.chroot index a0173e49..9c0671f3 100755 --- a/data/live-build-config/hooks/live/82-cleanup-udev-rules.chroot +++ b/data/live-build-config/hooks/live/82-cleanup-udev-rules.chroot @@ -5,3 +5,4 @@ # Need to delete this rule to prevent overhead on interface creation stage rm /lib/systemd/network/99-default.link +rm /etc/udev/rules.d/62-temporary-interface-rename.rules -- cgit v1.2.3