* [patch RFC 5/6 resend] Get ifaces for udev rule use
@ 2012-11-08 9:58 Dave Young
[not found] ` <20121108095856.GA24413-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Dave Young @ 2012-11-08 9:58 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA, harald-H+wXaHxf7aLQT0dZR+AlfA
Get ifaces for udev rule use
In case without BOOTIF, but /tmp/ifaces are already created.
net-genrule.sh will fall to bring up all net interfaces.
Fix by reading from /tmp/ifaces before generating rules instead.
Signed-off-by: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
modules.d/40network/net-genrules.sh | 2 ++
1 file changed, 2 insertions(+)
--- dracut.orig/modules.d/40network/net-genrules.sh
+++ dracut/modules.d/40network/net-genrules.sh
@@ -19,6 +19,8 @@ if [ -z "$netroot" ] && [ ! -e "/tmp/net
return
fi
+[ -e /tmp/net.ifaces ] && read IFACES < /tmp/net.ifaces
+
# Write udev rules
{
# bridge: attempt only the defined interface
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch RFC 5/6 resend] Get ifaces for udev rule use
[not found] ` <20121108095856.GA24413-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2012-11-09 1:42 ` Dave Young
0 siblings, 0 replies; 2+ messages in thread
From: Dave Young @ 2012-11-09 1:42 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA, harald-H+wXaHxf7aLQT0dZR+AlfA
Please ignore this. Last post 5/6 got received as well.
They were rejected by vger.kernel.org maybe because I use local postfix
sendmail. After adding a relay server they were sent out finally..
On 11/08/2012 05:58 PM, Dave Young wrote:
> Get ifaces for udev rule use
>
> In case without BOOTIF, but /tmp/ifaces are already created.
> net-genrule.sh will fall to bring up all net interfaces.
>
> Fix by reading from /tmp/ifaces before generating rules instead.
>
> Signed-off-by: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> modules.d/40network/net-genrules.sh | 2 ++
> 1 file changed, 2 insertions(+)
>
> --- dracut.orig/modules.d/40network/net-genrules.sh
> +++ dracut/modules.d/40network/net-genrules.sh
> @@ -19,6 +19,8 @@ if [ -z "$netroot" ] && [ ! -e "/tmp/net
> return
> fi
>
> +[ -e /tmp/net.ifaces ] && read IFACES < /tmp/net.ifaces
> +
> # Write udev rules
> {
> # bridge: attempt only the defined interface
> --
> 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
--
Thanks
Dave
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-09 1:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08 9:58 [patch RFC 5/6 resend] Get ifaces for udev rule use Dave Young
[not found] ` <20121108095856.GA24413-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2012-11-09 1:42 ` Dave Young
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox