mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Seewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
To: Victor Lowther <victor.lowther-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Warren Togami <wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [RFC PATCH] Move actually mounting the root filesystem into its own series of hooks.
Date: Tue, 24 Feb 2009 14:21:03 +0100	[thread overview]
Message-ID: <49A3F43F.6000103@bfh.ch> (raw)
In-Reply-To: <1235475578.28090.64.camel-76q0VzFBGGr21HsLBtNmTckMGDeJXHgy@public.gmane.org>



Victor Lowther wrote:
[snip]
>> Though I see a small problem: Ever thought about what happens if there 
>> are multiple interfaces on different networks? Only one is valid to 
>> mount the root-fs... Currently I've solved that by upping each interface 
>> and then ping-testing the nfs-server... Any better ideas?
> 
> My current plan was to try and mount the NFS share forever, and maybe
> panic and die if a timeout option was passed as a kernel parameter.
> 
> Yes, I have thought about it, and have come to the conclusion that it is
> one of those problems that someone who actually uses it is better
> equipped to solve.  Writing the code to bring interfaces up and mount
> filesystems is generic, writing code to see if servers are responding
> depends on the environment -- the best way for me to handle it is to
> make it dead simple for site admins to handle it.

I agree, the ifup and mount should be pretty generic.

Browsing through the code a bit more thorougly throws up a few questions:

- 'dhclient -nw': Why are you starting the dhclient in daemon mode? 
Couldn't that pose problems when dhcp takes ages to acquire an adress? I 
mean like, we've ifup'ed all interfaces and are allready in the mount 
hooks without an ip. I guess we'd have to have a blocking mount-script 
waiting for at least one interface to be really brought up or spew an 
error message after a specific time out.

- default gw handling in dhclient-script: 'ip route add default' will 
fail if there's already another default route (Again the case of 
multiple interfaces). Would it be an idea not set a default route at all 
and let a mount-script handle this?

- I'd suggest adding something like if-pre-up.d, etc. Would make it easy 
to integrate wireless and/or wpa support.

- Why are you killing dhclient at the end?

Thanks for the great work!
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

  parent reply	other threads:[~2009-02-24 13:21 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-22  6:33 [RFC PATCH] Move actually mounting the root filesystem into its own series of hooks Victor Lowther
     [not found] ` <3188506a1f06de54ee7874fc45261f5c2faf9e79.1235283966.git.victor.lowther-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-02-23 20:07   ` Warren Togami
     [not found]     ` <49A301FF.2090303-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-02-24  0:07       ` Victor Lowther
     [not found]         ` <1235434056.28090.28.camel-76q0VzFBGGr21HsLBtNmTckMGDeJXHgy@public.gmane.org>
2009-02-24  0:24           ` Warren Togami
     [not found]             ` <49A33E43.5010602-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-02-24  0:44               ` Victor Lowther
2009-02-24  8:10           ` Seewer Philippe
     [not found]             ` <49A3AB75.1010805-omB+W0Dpw2o@public.gmane.org>
2009-02-24 11:39               ` Victor Lowther
     [not found]                 ` <1235475578.28090.64.camel-76q0VzFBGGr21HsLBtNmTckMGDeJXHgy@public.gmane.org>
2009-02-24 13:21                   ` Seewer Philippe [this message]
     [not found]                     ` <49A3F43F.6000103-omB+W0Dpw2o@public.gmane.org>
2009-02-24 13:49                       ` Bogdan Costescu
2009-02-24 14:19                       ` Victor Lowther
     [not found]                         ` <644FF96C-AAA8-4309-A3C8-B38EA1DE7C45-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-02-24 14:37                           ` Kay Sievers
2009-02-24 15:39                           ` Seewer Philippe
     [not found]                             ` <49A414CD.8070204-omB+W0Dpw2o@public.gmane.org>
2009-02-24 16:07                               ` Victor Lowther
2009-02-24 18:50                               ` Jeremy Katz
     [not found]                                 ` <20090224185034.GA1834-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-02-25  7:25                                   ` Seewer Philippe
2009-02-25 12:13                               ` Victor Lowther
2009-02-24 13:45                   ` Bogdan Costescu
     [not found]                     ` <Pine.LNX.4.64.0902241443320.22015-qcrbbFV08EMdmw7VdWMmteH3J2bgQ+4lG9Ur7JDdleE@public.gmane.org>
2009-02-24 13:47                       ` Seewer Philippe
2009-02-24 13:40               ` Bogdan Costescu
     [not found]                 ` <Pine.LNX.4.64.0902241430270.22015-qcrbbFV08EMdmw7VdWMmteH3J2bgQ+4lG9Ur7JDdleE@public.gmane.org>
2009-02-24 15:22                   ` Seewer Philippe
2009-02-24  8:00       ` Seewer Philippe
     [not found]         ` <49A3A924.9000003-omB+W0Dpw2o@public.gmane.org>
2009-02-24 11:29           ` Victor Lowther
     [not found]             ` <1235474964.28090.53.camel-76q0VzFBGGr21HsLBtNmTckMGDeJXHgy@public.gmane.org>
2009-02-24 12:24               ` Seewer Philippe
     [not found]                 ` <49A3E70D.9050006-omB+W0Dpw2o@public.gmane.org>
2009-02-24 14:45                   ` Warren Togami
2009-02-24 12:35               ` Thiago Galesi
     [not found]                 ` <82ecf08e0902240435v5ebbb37clea8c8148ce19fa95-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-02-24 15:42                   ` Seewer Philippe
2009-02-24 15:45                   ` Warren Togami
     [not found]                     ` <49A41618.2020807-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-02-24 15:48                       ` Seewer Philippe
2009-02-24 15:50                       ` Thiago Galesi

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=49A3F43F.6000103@bfh.ch \
    --to=philippe.seewer-omb+w0dpw2o@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=victor.lowther-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=wtogami-H+wXaHxf7aLQT0dZR+AlfA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox