Skip to content

features: fix addition of af_packet kernel module for dhcp

Brad Fritz requested to merge _bfritz/mkinitfs:fix-dhcp-af_packet-module into master

Follow-up to 5a6f829e so mkinitfs -F dhcp works as expected.

Without this change, ip=dhcp will not work on Raspberry Pi images because af_packet.ko is not in the initramfs:

$ sha256sum alpine-rpi-3.11.3-armv7.tar.gz
438648629838b02b2eead75ede2137dd480e1ae748b632b312a0b7b13924e6c2  alpine-rpi-3.11.3-armv7.tar.gz

$ for P in rpi2 rpi4; do
    tar -O -xzf alpine-rpi-3.11.3-armv7.tar.gz ./boot/initramfs-$P | gunzip | cpio -t | grep "af.*ko"

15320 blocks
15552 blocks

ref aports#10750 (closed)

Merge request reports