Gerard Beekmans wrote:
It wasn't perfect no. It was one of those cases of "I have 5 minutes to get it done, need to hack existing script to add vlan capabilities."
Been there, done that :-)
Your method would do the trick too yes, as long as ifconfig.eth0 gets run before ifconfig.eth0.{10,20}. It seems that is the case seeing how things sort alphabetically. Then you get the link up on eth0 first, then on eth0.10.
Exactly. Actually in my case, there are three steps: create an 802.1q Ethernet bonded device first, then create VLAN interfaces on top of that, then assign addresses.
Now a hypothetical situation: what if things didn't order alphabetically that way for some reason? There's no dependency information here so things could be fragile in other situations and possible be run in the wrong order.
The bootscripts are documented to run these files/directories always in shell sort order, so you can rely on that forever. Any future changes to the scripts will have to preserve backwards compatibility.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page