All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] Multiple interfaces support and lots of cmdline parsing
@ 2009-06-12 15:11 Seewer Philippe
       [not found] ` <4A327030.1000803-omB+W0Dpw2o@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Seewer Philippe @ 2009-06-12 15:11 UTC (permalink / raw)
  To: <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

Basically dracut has a problem with netroot when booting with multiple 
nics. If we have multiple interfaces online at the same time, we don't 
really know which interface to use for default-route or dhcp root-path 
source.

This series of patches adresses this problem by delegating the real 
interface configuration to netroot and introducing a new cmdline 
argument. I'll try to explain to solution with two use cases:


Case 1: Multiple interfaces with ip=dhcp or ip=client-ip... but no <dev>

The problem here is that we can't up just every eth that pops up. 
Default-route or whatever will get confused.

The solution here is that ifup and/or dhclient script just write the 
necessary ip statements into /tmp/net.$dev.* and netroot (which is 
synchronized by a lock) just uses one interface at a time, deconfiguring 
it if mounting fails.


Case 2: Multiple interfaces with multiple ip= lines

This is a case where the user expects all interfaces to be up before 
mounting. Think bonding, iscsi multipathing, etc.

The solution here is that the ip cmdline parsers enforces the presence 
of <dev> for multiple ip= lines and further demands that the new 
argument bootdev contains the name of the primary interface to be used 
for routing etc. Configuration is of course again delegated to netroot 
but in this case netroot takes additional care to "wait" for all 
required interfaces to be up.


In order to ensure correct ip= lines I've added a lot of cmdline 
parseing and some mostly minor rewrites of actual netroot handlers.


Thanks for reviewing (or accepting) the stuff,
Philippe
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-06-17 14:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-12 15:11 [RFC PATCH 0/5] Multiple interfaces support and lots of cmdline parsing Seewer Philippe
     [not found] ` <4A327030.1000803-omB+W0Dpw2o@public.gmane.org>
2009-06-12 20:35   ` Warren Togami
     [not found]     ` <4A32BC07.2040704-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-12 20:49       ` Warren Togami
2009-06-13  4:05   ` David Dillow
     [not found]     ` <1244865916.18551.20.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2009-06-13  8:17       ` Seewer Philippe
     [not found]         ` <4A3360AA.9060600-omB+W0Dpw2o@public.gmane.org>
2009-06-13 12:24           ` David Dillow
     [not found]             ` <1244895898.18551.30.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2009-06-13 12:49               ` Seewer Philippe
     [not found]                 ` <4A33A062.7030208-omB+W0Dpw2o@public.gmane.org>
2009-06-15 16:19                   ` Warren Togami
     [not found]                     ` <4A36748E.7060408-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-17  6:49                       ` Seewer Philippe
     [not found]                         ` <4A3891F7.8060501-omB+W0Dpw2o@public.gmane.org>
2009-06-17 14:24                           ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.