mkinitrd unification across distributions
 help / color / mirror / Atom feed
* [PATCH 0/2] dracut, udev and complicated netboot cases
@ 2009-03-14 12:52 Seewer Philippe
       [not found] ` <49BBA8A7.4010903-omB+W0Dpw2o@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Seewer Philippe @ 2009-03-14 12:52 UTC (permalink / raw)
  To: <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

Hello all

The following two patches add udev driven network configuration support 
and a basic nfsroot handler.

As describe earlier, there can be many weird and complicated netboot 
cases. The requirement that it should be udev driven doesn't make it any 
easier. At least at first glance.

The current solution actually makes use of udev for speed up. The idea 
is based on Victor Lowther's first implementation which forked off 
dhclients after the udev event fired. By modifying ifup and the 
dhclient-script we can synchronize back by using a simple (blocking) 
FIFO. Interfaces which are ready are upped and tested FIFO-style by 
reading one out of the fifo, and handing over the the actual 
mount-script. If it succeeds, all is well. If it fails or times out, we 
try (or wait for) the next interface.

The whole interface configuration part tries to behave as much like the 
current implementation inside the kernel as possible, with a few 
extensions:
- I'm assuming that if there's a network driver inside the initrd the 
user wants something. So no ip= option is treated like ip=dhcp
- Instead of only relying on the first interface that pops up or the one 
that first receives a dhcp reply we try all interfaces that have a 
useable configuration.


Patches apply on top of Harald Hoyers merge tree
(git://git.surfsite.org/pub/git/dracut.git)

Regards,
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] 3+ messages in thread

* Re: [PATCH 0/2] dracut, udev and complicated netboot cases
       [not found] ` <49BBA8A7.4010903-omB+W0Dpw2o@public.gmane.org>
@ 2009-03-14 16:15   ` Victor Lowther
       [not found]     ` <1237047349.14649.252.camel-76q0VzFBGGr21HsLBtNmTckMGDeJXHgy@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Victor Lowther @ 2009-03-14 16:15 UTC (permalink / raw)
  To: Seewer Philippe; +Cc: <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>

On Sat, 2009-03-14 at 13:52 +0100, Seewer Philippe wrote:
> Hello all
> 
> The following two patches add udev driven network configuration support 
> and a basic nfsroot handler.
> 
> As describe earlier, there can be many weird and complicated netboot 
> cases. The requirement that it should be udev driven doesn't make it any 
> easier. At least at first glance.
> 
> The current solution actually makes use of udev for speed up. The idea 
> is based on Victor Lowther's first implementation which forked off 
> dhclients after the udev event fired. By modifying ifup and the 
> dhclient-script we can synchronize back by using a simple (blocking) 
> FIFO. Interfaces which are ready are upped and tested FIFO-style by 
> reading one out of the fifo, and handing over the the actual 
> mount-script. If it succeeds, all is well. If it fails or times out, we 
> try (or wait for) the next interface.
>
> The whole interface configuration part tries to behave as much like the 
> current implementation inside the kernel as possible, with a few 
> extensions:
> - I'm assuming that if there's a network driver inside the initrd the 
> user wants something. So no ip= option is treated like ip=dhcp
> - Instead of only relying on the first interface that pops up or the one 
> that first receives a dhcp reply we try all interfaces that have a 
> useable configuration.

You shoudl save the additional dhcp options, so that people who want to
do their fs mounting based on parameters provided by dhcp can do that.  

> Patches apply on top of Harald Hoyers merge tree
> (git://git.surfsite.org/pub/git/dracut.git)
> 
> Regards,
> 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
-- 
Victor Lowther
RHCE# 805008539634727
LPIC-2# LPI000140019

--
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] 3+ messages in thread

* Re: [PATCH 0/2] dracut, udev and complicated netboot cases
       [not found]     ` <1237047349.14649.252.camel-76q0VzFBGGr21HsLBtNmTckMGDeJXHgy@public.gmane.org>
@ 2009-03-14 16:32       ` Seewer Philippe
  0 siblings, 0 replies; 3+ messages in thread
From: Seewer Philippe @ 2009-03-14 16:32 UTC (permalink / raw)
  To: <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>



Victor Lowther wrote:
> You shoudl save the additional dhcp options, so that people who want to
> do their fs mounting based on parameters provided by dhcp can do that.  

Good point. Save it in a sourceable scriptfile or just let dhclient
create a leasefile?


--
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] 3+ messages in thread

end of thread, other threads:[~2009-03-14 16:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-14 12:52 [PATCH 0/2] dracut, udev and complicated netboot cases Seewer Philippe
     [not found] ` <49BBA8A7.4010903-omB+W0Dpw2o@public.gmane.org>
2009-03-14 16:15   ` Victor Lowther
     [not found]     ` <1237047349.14649.252.camel-76q0VzFBGGr21HsLBtNmTckMGDeJXHgy@public.gmane.org>
2009-03-14 16:32       ` Seewer Philippe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox