puppetlabs/Razor — pull request #142 by keyz182 (2012-07-19 22:30:11+00:00)
Title: Ensure the Ubuntu installer uses the correct interface (the one it booted from)

In my environment, we have a lot of differing machines, with different NICs. These often get recognized in different orders by different OSes (even the same OS at times).

I was having issues where booting some machines with razor would go fine until it tried to actually install Ubuntu, where the installer would fail at the networking section.

This fix tells iPXE to add the MAC address of the NIC it's booting from to the kernel cmdline as BOOTIF, which the Ubuntu (and I believe debian, but have not been able to test) installer sees, and then prefers the nic with that MAC as eth0 (https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/56679).