]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(network-legacy): always include af_packet
authorMartin Wilck <mwilck@suse.com>
Tue, 7 Feb 2023 20:59:51 +0000 (21:59 +0100)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 13 Feb 2023 15:17:45 +0000 (16:17 +0100)
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

index e57fc6fa43adbb1ad2283f5f88eb38a79f0ee25f..868ea8fc29eed1b1f4bc90e47e04da7eecd97f97 100755 (executable)
@@ -15,7 +15,8 @@ depends() {
 
 # called by dracut
 installkernel() {
-    return 0
+    # arping depends on af_packet
+    hostonly='' instmods af_packet
 }
 
 # called by dracut