On 2015-12-03 12:04:55 +0100, Guilhem Moulin wrote: > On Thu, 03 Dec 2015 at 10:54:05 +0100, Vincent Lefevre wrote: > > Indeed, with ip=off added from the GRUB startup screen, the > > DHCP client is not started. > > By the way, as of 2015.70-1 this is is documented under > > /usr/share/doc/dropbear-initramfs/README.initramfs
Thanks. > > And this doesn't seem to be documented (unless one looks at > > /usr/share/initramfs-tools/scripts/functions -- I had to do > > a recursive grep to find in which file this was done --, one > > doesn't know). > > I didn't either, as I couldn't solve the halting problem I just poked > around to see why the network configuration seemed to loop :-P Anyway > that file is shipped by the initramfs-tools package, so if you want that > behavior to be documented you should file a bug report there. Perhaps you could say that the dropbear initramfs script runs the configure_networking function from the initramfs-tools package. Basically this information contains 2 things: 1. It is the dropbear initramfs script that allows the network to be configured (useful to know what is responsible for starting the network). 2. The code itself for network configuration is provided by the initramfs-tools package (so, the user should know where to look concerning network configuration). It was not obvious to find the right script (I did a "dpkg -L dropbear-initramfs" first), and then "dgrep configure_networking dropbear-initramfs" couldn't give the definition of this function, so that there were more things to look at... BTW, in the dropbear-initramfs scripts, is it normal to have a script called "ifdown": /usr/share/initramfs-tools/scripts/local-bottom/ifdown instead of "dropbear" (or "dropbear-ifdown")? > Anyway, if you don't want to add ip=off at boot time, you can also > replace /usr/share/initramfs-tools/scripts/init-premount/dropbear by our > version from the git HEAD: > > > https://anonscm.debian.org/cgit/collab-maint/dropbear.git/tree/debian/initramfs/premount-dropbear I had already added "&" after configure_networking, which is currently sufficient for me. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)