From: Martin Wilck Date: Tue, 7 Feb 2023 20:59:51 +0000 (+0100) Subject: fix(network-legacy): always include af_packet X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b074216be93dc4512b76fcd6b77a727aef11b22b;p=thirdparty%2Fdracut.git 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. --- 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