From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: [PATCH 1/2]dhclient initqueue hook fix
Date: Wed, 11 Jul 2012 16:14:49 +0800 [thread overview]
Message-ID: <4FFD35F9.8040602@redhat.com> (raw)
In-Reply-To: <20120709065635.GA14094-je1gSBvt1Td3da3rpXeqgR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
On 07/09/2012 02:56 PM, Dave Young wrote:
> dhclient initqueue hook fix
>
> setup_net is scheduled in initqueue, sometimes it does not get chance to run
> So the default route will not be set properly
>
> Add a check in initqueue/finished to resolve this issue.
Hi, harald. Could you give comment for this patch?
This might be only related to manually bring up network. I'm not sure
though.
>
> Signed-off-by: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> modules.d/40network/dhclient-script.sh | 2 ++
> 1 file changed, 2 insertions(+)
>
> --- dracut.orig/modules.d/40network/dhclient-script.sh
> +++ dracut/modules.d/40network/dhclient-script.sh
> @@ -81,9 +81,11 @@ case $reason in
> echo "setup_net $netif"
> echo "source_hook initqueue/online $netif"
> [ -e /tmp/net.$netif.manualup ] || echo "/sbin/netroot $netif"
> + echo "> /tmp/setup_net_$netif.ok"
> echo "rm -f $hookdir/initqueue/setup_net_$netif.sh"
> } > $hookdir/initqueue/setup_net_$netif.sh
>
> + echo "[ -f /tmp/setup_net_$netif.ok ]" > $hookdir/initqueue/finished/dhclient-$netif.sh
> >/tmp/net.$netif.up
> ;;
> *) echo "dhcp: $reason";;
> --
> 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
next prev parent reply other threads:[~2012-07-11 8:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-09 6:56 [PATCH 1/2]dhclient initqueue hook fix Dave Young
[not found] ` <20120709065635.GA14094-je1gSBvt1Td3da3rpXeqgR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2012-07-09 7:01 ` Dave Young
2012-07-11 8:14 ` Dave Young [this message]
[not found] ` <4FFD35F9.8040602-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-11 9:55 ` Harald Hoyer
[not found] ` <4FFD4D95.3060500-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-12 3:30 ` Dave Young
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=4FFD35F9.8040602@redhat.com \
--to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@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