* [PATCH] include biosdevname calls in dracut
@ 2010-12-06 0:52 Matt Domsch
[not found] ` <20101206005229.GA687-fZmvIyTar7vbK7CpiBUVEGyRm/Zj/t/4AL8bYrjMMd8@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Matt Domsch @ 2010-12-06 0:52 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
For your consideration. This allows biosdevname to be called from
network-using functions in dracut. biosdevname is included in Fedora
15, and there are tickets open to include it in other distros.
Signed-off-by: Matt Domsch <Matt_Domsch-8PEkshWhKlo@public.gmane.org>
Thanks,
Matt
From ef6a283f685571c730063a666830e2f02d8e9244 Mon Sep 17 00:00:00 2001
From: Matt Domsch <Matt_Domsch-8PEkshWhKlo@public.gmane.org>
Date: Fri, 3 Dec 2010 23:41:01 -0600
Subject: [PATCH] add biosdevname calls to network subpackage
---
dracut.spec | 1 +
modules.d/95udev-rules/install | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dracut.spec b/dracut.spec
index f3b92d7..f3fb3dd 100644
--- a/dracut.spec
+++ b/dracut.spec
@@ -113,6 +113,7 @@ Requires: bridge-utils
Requires: iscsi-initiator-utils
Requires: nfs-utils
Requires: dhclient
+Requires: biosdevname
%endif
%if 0%{?suse_version}
diff --git a/modules.d/95udev-rules/install b/modules.d/95udev-rules/install
index ee32b56..f42f68a 100755
--- a/modules.d/95udev-rules/install
+++ b/modules.d/95udev-rules/install
@@ -6,10 +6,11 @@
# ultimately, /lib/initramfs/rules.d or somesuch which includes links/copies
# of the rules we want so that we just copy those in would be best
dracut_install udevd udevadm /etc/udev/udev.conf /etc/group
-dracut_install basename
+dracut_install basename biosdevname
inst_rules 50-udev-default.rules 60-persistent-storage.rules \
61-persistent-storage-edd.rules 80-drivers.rules 95-udev-late.rules \
- 60-pcmcia.rules
+ 60-pcmcia.rules \
+ 71-netdevice.rules
#Some debian udev rules are named differently
inst_rules 50-udev.rules 95-late.rules
--
1.7.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <20101206005229.GA687-fZmvIyTar7vbK7CpiBUVEGyRm/Zj/t/4AL8bYrjMMd8@public.gmane.org>]
* Re: [PATCH] include biosdevname calls in dracut [not found] ` <20101206005229.GA687-fZmvIyTar7vbK7CpiBUVEGyRm/Zj/t/4AL8bYrjMMd8@public.gmane.org> @ 2010-12-14 19:58 ` Matt Domsch [not found] ` <20101214195807.GB31714-fZmvIyTar7vbK7CpiBUVEGyRm/Zj/t/4AL8bYrjMMd8@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Matt Domsch @ 2010-12-14 19:58 UTC (permalink / raw) To: initramfs-u79uwXL29TY76Z2rM5mHXA On Sun, Dec 05, 2010 at 06:52:29PM -0600, Matt Domsch wrote: > For your consideration. This allows biosdevname to be called from > network-using functions in dracut. biosdevname is included in Fedora > 15, and there are tickets open to include it in other distros. Any thoughts on this patch? Thanks, Matt -- Matt Domsch Technology Strategist Dell | Office of the CTO ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20101214195807.GB31714-fZmvIyTar7vbK7CpiBUVEGyRm/Zj/t/4AL8bYrjMMd8@public.gmane.org>]
* Re: [PATCH] include biosdevname calls in dracut [not found] ` <20101214195807.GB31714-fZmvIyTar7vbK7CpiBUVEGyRm/Zj/t/4AL8bYrjMMd8@public.gmane.org> @ 2010-12-21 16:16 ` Amadeusz Żołnowski 2010-12-31 14:57 ` Matt Domsch 0 siblings, 1 reply; 4+ messages in thread From: Amadeusz Żołnowski @ 2010-12-21 16:16 UTC (permalink / raw) To: initramfs [-- Attachment #1: Type: text/plain, Size: 692 bytes --] Excerpts from Matt Domsch's message of Tue Dec 14 20:58:07 +0100 2010: > On Sun, Dec 05, 2010 at 06:52:29PM -0600, Matt Domsch wrote: > > For your consideration. This allows biosdevname to be called from > > network-using functions in dracut. biosdevname is included in > > Fedora 15, and there are tickets open to include it in other > > distros. > > Any thoughts on this patch? I think that better would be to include your patch with first its usage. Having additional dependencies without a real use brings mess. But it's just my opinion and I'm not in charge. :-) Cheers, -- Amadeusz Żołnowski PGP key fpr: C700 CEDE 0C18 212E 49DA 4653 F013 4531 E1DB FAB5 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] include biosdevname calls in dracut 2010-12-21 16:16 ` Amadeusz Żołnowski @ 2010-12-31 14:57 ` Matt Domsch 0 siblings, 0 replies; 4+ messages in thread From: Matt Domsch @ 2010-12-31 14:57 UTC (permalink / raw) To: Amadeusz ??o??nowski; +Cc: initramfs On Tue, Dec 21, 2010 at 05:16:17PM +0100, Amadeusz ??o??nowski wrote: > Excerpts from Matt Domsch's message of Tue Dec 14 20:58:07 +0100 2010: > > On Sun, Dec 05, 2010 at 06:52:29PM -0600, Matt Domsch wrote: > > > For your consideration. This allows biosdevname to be called from > > > network-using functions in dracut. biosdevname is included in > > > Fedora 15, and there are tickets open to include it in other > > > distros. > > > > Any thoughts on this patch? > > I think that better would be to include your patch with first its usage. > Having additional dependencies without a real use brings mess. But it's > just my opinion and I'm not in charge. :-) The use case is simple - any network-using functions that are started using dracut (NFS root, iSCSI root, FCoE root) will then use the biosdevname names for devices, rather than the non-deterministic kernel names ethX. The three instances where <interface> can be passed are: ip=<interface>:{dhcp|on|any|dhcp6|auto6} bootdev=<interface> netroot=fcoe:<interface|MAC>:<dcb|nodcb> plus the forceable rewrite rule: ifname=<interface>:<MAC> which only works when you already know the MAC address of the target device. The biosdevname method behaves similarly to the ifname= method, except you get device names from BIOS, without needing to know the MAC address of the target device(s). With this patch, you no longer need to use bootdev=eth0 and later have udev rename eth0 to be em1, which leads to different devices names for configuration at different times (dracut and post-dracut). Both dracut and post-dracut use the same device names. Thanks, Matt -- Matt Domsch Technology Strategist Dell | Office of the CTO ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-31 14:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-06 0:52 [PATCH] include biosdevname calls in dracut Matt Domsch
[not found] ` <20101206005229.GA687-fZmvIyTar7vbK7CpiBUVEGyRm/Zj/t/4AL8bYrjMMd8@public.gmane.org>
2010-12-14 19:58 ` Matt Domsch
[not found] ` <20101214195807.GB31714-fZmvIyTar7vbK7CpiBUVEGyRm/Zj/t/4AL8bYrjMMd8@public.gmane.org>
2010-12-21 16:16 ` Amadeusz Żołnowski
2010-12-31 14:57 ` Matt Domsch
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.