All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Baoquan He <bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: [PATCH v2 2/2] Wait for logical interface to be up
Date: Tue, 09 Apr 2013 11:04:04 +0800	[thread overview]
Message-ID: <51638524.4000508@redhat.com> (raw)
In-Reply-To: <9100182be23fd2ec4e42f0ba667bc09cab6ca056.1365413867.git.bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On 04/08/2013 05:47 PM, Baoquan He wrote:
> If bootdev is logical interface like bond, bridge or vlan, we need
> wait them up.
> 
> Signed-off-by: Baoquan He <bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  modules.d/40network/net-genrules.sh |   11 ++++++++++-
>  1 files changed, 10 insertions(+), 1 deletions(-)
> 
> diff --git a/modules.d/40network/net-genrules.sh b/modules.d/40network/net-genrules.sh
> index 05fa5f3..be2f811 100755
> --- a/modules.d/40network/net-genrules.sh
> +++ b/modules.d/40network/net-genrules.sh
> @@ -25,6 +25,7 @@ fi
>      if [ -e /tmp/bridge.info ]; then
>          . /tmp/bridge.info
>          IFACES="$IFACES ${ethnames%% *}"
> +        MASTER_IFACES="$MASTER_IFACES $bridgename"
>      fi
>  
>      # bond: attempt only the defined interface (override bridge defines)
> @@ -35,16 +36,19 @@ fi
>          . "$i"
>          # It is enough to fire up only one
>          IFACES="$IFACES ${bondslaves%% *}"
> +        MASTER_IFACES="$MASTER_IFACES ${bondname}"
>      done
>  
>      if [ -e /tmp/team.info ]; then
>          . /tmp/team.info
>          IFACES="$IFACES ${teamslaves}"
> +        MASTER_IFACES="$MASTER_IFACES ${teammaster}"
>      fi
>  
>      if [ -e /tmp/vlan.info ]; then
>          . /tmp/vlan.info
>          IFACES="$IFACES $phydevice"
> +        MASTER_IFACES="$MASTER_IFACES ${vlanname}"
>      fi
>  
>      if [ -z "$IFACES" ]; then
> @@ -56,7 +60,7 @@ fi
>      fi
>  
>      ifup='/sbin/ifup $env{INTERFACE}'
> -    [ -z "$netroot" ] && ifup="$ifup -m"
> +    [ -z "$netroot" ] && ifup="$ifup -m"

Please remove change in above line.., otherwise these two patches looks
good to me.


>  
>      # BOOTIF says everything, use only that one
>      BOOTIF=$(getarg 'BOOTIF=')
> @@ -74,6 +78,11 @@ fi
>              fi
>          done
>  
> +        for iface in $MASTER_IFACES; do
> +            if [ "$bootdev" = "$iface" ]; then
> +                echo "[ -f /tmp/setup_net_${iface}.ok ]" >$hookdir/initqueue/finished/wait-$iface.sh
> +            fi
> +        done
>      # Default: We don't know the interface to use, handle all
>      # Fixme: waiting for the interface as well.
>      else
> 


-- 
Thanks
Dave


  parent reply	other threads:[~2013-04-09  3:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08  9:47 [PATCH v2 0/2] support multiple bonding interfaces Baoquan He
     [not found] ` <cover.1365413867.git.bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-08  9:47   ` [PATCH v2 1/2] network: " Baoquan He
     [not found]     ` <99a1ec144499cee623d5096ce9873bf385616c16.1365413867.git.bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-09  8:53       ` Harald Hoyer
2013-04-08  9:47   ` [PATCH v2 2/2] Wait for logical interface to be up Baoquan He
     [not found]     ` <9100182be23fd2ec4e42f0ba667bc09cab6ca056.1365413867.git.bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-09  3:04       ` Dave Young [this message]
2013-04-09  8:54       ` 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=51638524.4000508@redhat.com \
    --to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=bhe-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 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.