Ubuntu Server 12.10: set up network bridge in the initramfs pre-boot environment

Herby Gillot asked:

In this scenario, I have a machine that boots its root volume off of iSCSI, and it only has a single network interface. If network configuration is done the normal way, then taking the interface down to add it to the bridge would kill the connection, and the machine would hang since it would lose access to its root device.

Setting up the bridge in the initramfs pre-boot environment would seem like the right approach here….

Recent versions of CentOS/Redhat support this in dracut with the “bridge” kernel parameter, but I am unable to find the equivalent way to do this for Ubuntu Server.

Ubuntu’s default busybox-initramfs package does not include brctl, so it looks like everything would need to be set up manually….

My answer:

Looks like you get to do everything yourself; Ubuntu doesn’t seem to have any support for this scenario. I suggest opening a feature request on Launchpad.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.