<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>19151</bug_id>
          
          <creation_ts>2009-03-12 14:50:51 +0300</creation_ts>
          <short_desc>wrong interface initialization process in ifup-common script</short_desc>
          <delta_ts>2009-12-04 19:03:43 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>etcnet</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>19152</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="inger@altlinux.org">inger</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>ldv</cc>
    
    <cc>rider</cc>
    
    <cc>sem</cc>
    
    <cc>shaba</cc>
    
    <cc>vitty</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87176</commentid>
    <comment_count>0</comment_count>
    <who name="inger@altlinux.org">inger</who>
    <bug_when>2009-03-12 14:50:51 +0300</bug_when>
    <thetext>Наверное стоит сначала поднимать до конца аппаратуру, а потом уже конфигурить протоколы. Модификация /etc/resolv.conf должна производиться в самом конце перед запуском post хуков только в том случае если интерфейс успешно поднялся.

То есть ifup-common должен выглядеть примерно следующим образом:
--
....

if is_yes &quot;$CONFIG_WIRELESS&quot; &amp;&amp; is_wireless $NAME; then
    if ! is_yes $IN_WPA_CLI; then
        $SCRIPTDIR/config-wireless $NAME
        rc=$?
        [ $rc -eq 2 ] || exit $rc
        print_progress
    fi
fi

# type-specific additional optional configuration 
ExecIfExecutable $SCRIPTDIR/setup-$TYPE $NAME &amp;&amp; print_progress

# process ip neighbours 
xargise_file $MYIFACEDIR/ipneigh &quot;$IP neigh replace dev $NAME&quot;

...

iface_is_up $NAME &amp;&amp; {

      # handle resolver config
      MYRESOLVCONF=`profiled_filename $MYIFACEDIR/resolv.conf`
      if [ -s $MYRESOLVCONF ]; then
          rm -f /etc/resolv.conf
          cp $MYRESOLVCONF /etc/resolv.conf
          [ -x &quot;$RESOLV_POSTIN_CMD&quot; ] &amp;&amp; $RESOLV_POSTIN_CMD $RESOLV_POSTIN_ARGS
          print_progress
       fi

       # ifup-post
       ExecIfExecutable $LOCALSCRIPTDIR/ifup-post-local $NAME &amp;&amp; print_progress
       ExecIfExecutable $MYIFACEDIR/ifup-post $NAME &amp;&amp; print_progress
}
...
--</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93130</commentid>
    <comment_count>1</comment_count>
    <who name="Denis Ovsienko">pilot</who>
    <bug_when>2009-06-16 13:14:14 +0400</bug_when>
    <thetext>diff есть?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93184</commentid>
    <comment_count>2</comment_count>
    <who name="inger@altlinux.org">inger</who>
    <bug_when>2009-06-17 11:52:35 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; diff есть?
нет</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>