From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Pawel Wieczorkiewicz
<pwieczorkiewicz-l3A5Bk7waGM@public.gmane.org>,
Hannes Reinecke <hare-l3A5Bk7waGM@public.gmane.org>
Subject: Re: [PATCH 2/4] 40network: Fix race condition when wait for networks
Date: Tue, 02 Jun 2015 12:15:26 +0200 [thread overview]
Message-ID: <556D823E.1090104@redhat.com> (raw)
In-Reply-To: <1427127138-12932-3-git-send-email-trenn-l3A5Bk7waGM@public.gmane.org>
On 23.03.2015 17:12, Thomas Renninger wrote:
> From: Pawel Wieczorkiewicz <pwieczorkiewicz-l3A5Bk7waGM@public.gmane.org>
>
> If no network related params are specific, but rd.neednet=1 is set,
> the default initqueue action is to wait until one of the network
> interfaces is marked as setup properly.
>
> This also help with initqueue's race condition when the network interface
> shows upd late
>
> References: bnc#866771
>
> Signed-off-by: Hannes Reinecke <hare-l3A5Bk7waGM@public.gmane.org>
> Signed-off-by: Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org>
> ---
> modules.d/40network/net-genrules.sh | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/modules.d/40network/net-genrules.sh b/modules.d/40network/net-genrules.sh
> index 77e47b5..2c955b7 100755
> --- a/modules.d/40network/net-genrules.sh
> +++ b/modules.d/40network/net-genrules.sh
> @@ -95,7 +95,10 @@ command -v fix_bootif >/dev/null || . /lib/net-lib.sh
> else
> cond='ACTION=="add", SUBSYSTEM=="net"'
> # if you change the name of "91-default-net.rules", also change modules.d/80cms/cmssetup.sh
> - echo "$cond, $runcmd" > /etc/udev/rules.d/91-default-net.rules
> + if [ "$NEEDNET" = "1" ]; then
> + echo "$cond, $runcmd" > /etc/udev/rules.d/91-default-net.rules
> + echo "[ -f /tmp/net.*.did-setup ]" >$hookdir/initqueue/finished/wait-network.sh
err, if multiple networks are up, [ -f /tmp/net.*.did-setup ] is not correct
shell syntax.
$ [ -e /dev/* ] && echo OK
bash: [: too many arguments
> + fi
> fi
>
> # if you change the name of "90-net.rules", also change modules.d/80cms/cmssetup.sh
>
next prev parent reply other threads:[~2015-06-02 10:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-23 16:12 Some tiny fixes Thomas Renninger
[not found] ` <1427127138-12932-1-git-send-email-trenn-l3A5Bk7waGM@public.gmane.org>
2015-03-23 16:12 ` [PATCH 1/4] Correct paths for openSUSE Thomas Renninger
[not found] ` <1427127138-12932-2-git-send-email-trenn-l3A5Bk7waGM@public.gmane.org>
2015-06-02 10:25 ` Harald Hoyer
2015-03-23 16:12 ` [PATCH 2/4] 40network: Fix race condition when wait for networks Thomas Renninger
[not found] ` <1427127138-12932-3-git-send-email-trenn-l3A5Bk7waGM@public.gmane.org>
2015-06-02 10:15 ` Harald Hoyer [this message]
[not found] ` <556D823E.1090104-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-06-02 10:50 ` Pawel Wieczorkiewicz
2015-03-23 16:12 ` [PATCH 3/4] 40network: always start netroot in ifup.sh Thomas Renninger
[not found] ` <1427127138-12932-4-git-send-email-trenn-l3A5Bk7waGM@public.gmane.org>
2015-06-02 10:24 ` Harald Hoyer
2015-03-23 16:12 ` [PATCH 4/4] 95fcoe-uefi: Test for EFI firmware Thomas Renninger
[not found] ` <1427127138-12932-5-git-send-email-trenn-l3A5Bk7waGM@public.gmane.org>
2015-03-26 15:38 ` [Dracut GitHub] Patchset imported to github Dracut GitHub Import Bot
2015-06-02 10:25 ` [PATCH 4/4] 95fcoe-uefi: Test for EFI firmware Harald Hoyer
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=556D823E.1090104@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=hare-l3A5Bk7waGM@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=pwieczorkiewicz-l3A5Bk7waGM@public.gmane.org \
--cc=trenn-l3A5Bk7waGM@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