All of lore.kernel.org
 help / color / mirror / Atom feed
From: Seewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
To: "<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>"
	<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [RFC PATCH 0/5] Multiple interfaces support and lots of cmdline parsing
Date: Fri, 12 Jun 2009 17:11:44 +0200	[thread overview]
Message-ID: <4A327030.1000803@bfh.ch> (raw)

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

             reply	other threads:[~2009-06-12 15:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-12 15:11 Seewer Philippe [this message]
     [not found] ` <4A327030.1000803-omB+W0Dpw2o@public.gmane.org>
2009-06-12 20:35   ` [RFC PATCH 0/5] Multiple interfaces support and lots of cmdline parsing 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A327030.1000803@bfh.ch \
    --to=philippe.seewer-omb+w0dpw2o@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.