On Fri, 29 May 2015 at 23:35:26 -0500, Karl O. Pinc wrote: > Or maybe adding a flush after the ipconfig brings the > interface down. > > Hopefully this would remove the old "boot-temporary" ip > netmask, routes, etc. and leave the interface "clean" > and ready to get it's normal configuration. > > Unfortunately I just don't have time right now to try this. > Any help would be appreciated.
My test was probably not exhaustive, but added the following two lines to a init-bottom script did the trick for me: ip addr flush dev eth0 ip link set dev eth0 down I tried to boot with kernel parameter ‘ip=192.168.1.200:::::eth0:off’. Without the init-bottom script the normal network configuration seems to be ignored (it keeps IP 192.168.1.200 instead), while with the script eth0 is configured properly (following the /etc/network/interfaces). I'll see if the linux-initramfs-tool would be willing to accept an ‘unconfigure_networking’ function using ip(1). -- Guilhem.
signature.asc
Description: Digital signature