From b074216be93dc4512b76fcd6b77a727aef11b22b Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Tue, 7 Feb 2023 21:59:51 +0100 Subject: [PATCH] fix(network-legacy): always include af_packet For static IPv4 configurations, we use arping to check for duplicate IP addresses. arping requires the af_packet module to work, and if arping fails, the IP address will not be set and booting will fail. af_packet may not be loaded / required in the running system, for example if the system had been booted in an IPv6 configuration, or if it had been manually unloaded. Make sure it's included in initramfs in hostonly mode, too. --- modules.d/35network-legacy/module-setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules.d/35network-legacy/module-setup.sh b/modules.d/35network-legacy/module-setup.sh index e57fc6fa4..868ea8fc2 100755 --- a/modules.d/35network-legacy/module-setup.sh +++ b/modules.d/35network-legacy/module-setup.sh @@ -15,7 +15,8 @@ depends() { # called by dracut installkernel() { - return 0 + # arping depends on af_packet + hostonly='' instmods af_packet } # called by dracut -- 2.47.2