All of lore.kernel.org
 help / color / mirror / Atom feed
* Issues with dracut and network device naming
@ 2009-08-28 12:14 Hans de Goede
  2009-08-28 12:43 ` Harald Hoyer
       [not found] ` <4A97CA1A.5080606-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Hans de Goede @ 2009-08-28 12:14 UTC (permalink / raw)
  To: initramfs
  Cc: Discussion of Development and Customization of the Red Hat Linux Installer

Hi all,

When using iscsi for example, an interface name (usually eth#) is
specified on the dracut cmdline, but if a machine has multiple nics
the probe order done by dracut may very well differ as the one
which was used during install when the dracut cmdline gets generated.

For the fcoe support I've allowed specifying a mac address instead,
however this has issues too. As now the udev run from rc.sysinit
complains it cannot rename the interface to what the running system
expects as the interface is busy (oops).

So it looks like we need to somehow tell dracut to use the same
mac <-> interface name mapping as during the running system.

One way of doing this would be to have a configuration initrd with
the persistent net rules. But I see multiple issues with this:

1) I'm not sure all bootloaders support loading multiple initrd's
    and I'm not sure dracut supports having files over multiple
    initrd's at the moment either

2) Merging the generic initrd and the config initrd, although it
    should be safe may turn out fragile

3) To me the biggest problem. Currently what dracut does is very
    transparent, if we know the cmdline and the hardware configuration /
    disk layouts, we should be able to predict what it is going to do
    Once we start hiding configration inside an image file, it becames
    less transparent

4) I don't know how well the persistent network device rules and our
    current generated during boot network device rules play together.
    The current generated rules do not seem to be ready for handling
    device name changes

So I would like to propose another solution for this, allow specifying
both an interface-name and a mac with ip=, and then have the dracut
generated rules do the rename and init. This way problems 3) and 4)
above are solved, and we can easily also write the mac address to
grub.conf from anaconda when generating the ip= cmdline.

Regards,

Hans

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

end of thread, other threads:[~2009-08-31 15:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-28 12:14 Issues with dracut and network device naming Hans de Goede
2009-08-28 12:43 ` Harald Hoyer
     [not found]   ` <4A97D0F9.9020302-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-08-28 12:45     ` Seewer Philippe
2009-08-28 14:16       ` Hans de Goede
     [not found]         ` <4A97E6CA.2020200-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-08-28 15:25           ` Seewer Philippe
     [not found]             ` <4A97F6E6.4040206-omB+W0Dpw2o@public.gmane.org>
2009-08-28 20:55               ` Victor Lowther
2009-08-31 11:20             ` Hans de Goede
     [not found] ` <4A97CA1A.5080606-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-08-28 14:36   ` Jon Masters
2009-08-31 11:17     ` Hans de Goede
     [not found]       ` <4A9BB155.8020106-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-08-31 13:32         ` Victor Lowther
2009-08-31 15:16       ` Jon Masters

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.