Joined: 04 Mar 2017
|Posted: Sat Sep 16, 2017 1:09 pm Post subject: New genkernel broked networking and ssh in initramfs
|Hi folks! I use LUKS + ZFS on rootfs and unlocking it via dropbear in initramfs.
I made a script, that patch initramfs (init script, adds dropbear, etc) and packs it back, when you need to update a kernel. I spent much time for it, to make it working with my broadcom network card, which requires also a firmware in initramfs.
I was forced to upgrade genkernel from 3.4 versions to latest 18.104.22.168, because new ZFS-0.7.1 requires it. Now it is not working. Seems network module fails to load, and udhcpd is also added for unknown reason.
the networking part of my script was (net.ifnames=0 in kernel):
ifconfig -a -s #list available interfaces
ifconfig eth0 ip.ip.ip.ip netmask 255.255.255.0
ifconfig eth0 up
route add default gw gw.gw.gw.gw
it worked on old version. Now it says:
ifconfig: -s: no such device
bnx2 is compiled into kernel (=y). Firmware is included in initramfs.
I found a new option in genkernel SSH="yes/no", but no any documentation on it, and don't know how to enable static ip networking, instead of patching init file.