I created my own initramfs script (based on live-initramfs) and I need set up network connection (using DHCP) to get remote file. So what do I need to add to initramfs hook file (ifconfig, dhclient?). And how to write my initramfs script? Now I am trying something like this:
mkdir -p /var/run/network # needed by ifup modprobe af_packet # for DHCP? udevadm trigger udevadm settle ifup eth0 #???
for ifup I need /etc/network/interfaces file to have:
auto eth0 iface eth0 inet dhcp
But generally I don't know what exactly need to be done for network device to work properly in initramfs.
Any idea or help?