Skip to content

Commit

Permalink
fix(network-legacy): always include af_packet
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mwilck authored and aafeijoo-suse committed Feb 13, 2023
1 parent 7ff255a commit b074216
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules.d/35network-legacy/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ depends() {

# called by dracut
installkernel() {
return 0
# arping depends on af_packet
hostonly='' instmods af_packet
}

# called by dracut
Expand Down

0 comments on commit b074216

Please sign in to comment.