diff options
author | RageLtMan <rageltman [at] sempervictus> | 2023-01-29 13:35:01 -0500 |
---|---|---|
committer | RageLtMan <rageltman [at] sempervictus> | 2023-01-29 13:35:01 -0500 |
commit | 8e6d765be123be9d937970ee96b7d6d0b5053ed5 (patch) | |
tree | 75fdd29fb18886516baa7c541afeff7fec26eba6 /data/live-build-config/hooks | |
parent | d5ea780295ef8e8aeefb099ed05f78e7ec180b45 (diff) | |
download | vyos-build-8e6d765be123be9d937970ee96b7d6d0b5053ed5.tar.gz vyos-build-8e6d765be123be9d937970ee96b7d6d0b5053ed5.zip |
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.
Diffstat (limited to 'data/live-build-config/hooks')
-rwxr-xr-x | data/live-build-config/hooks/live/82-cleanup-udev-rules.chroot | 1 |
1 files changed, 1 insertions, 0 deletions
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 |