<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4855</bug_id>
          
          <creation_ts>2013-07-16 10:36:19 +0000</creation_ts>
          <short_desc>update-alternatives error for iproute2</short_desc>
          <delta_ts>2013-07-19 08:11:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Yi Zhao">yi.zhao</assigned_to>
          <cc>ke.zou</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ning.zhang</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34598</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-07-16 10:36:19 +0000</bug_when>
    <thetext>Git rev: master/74e403705e25afec656b5e40921771a9c29bdc40

Steps:
1. Download poky source and setup the environment.
2. Add the iproute2 package to the rootfs.
   Add the following line to conf/local.conf:
   CORE_IMAGE_EXTRA_INSTALL += &quot;iproute2&quot;
3. Build the image and bootup.

After the system bootup, there is a file named &quot;1&quot; in / directory. 
###################
# cat /1 
update-alternatives: Error: cannot register alternative ip to /bin/ip since it is already registered to /sbin/ip
#
###################

It looks there are 2 issues:
1. The /bin/ip command from iproute2 set a wrong ALTERNATIVE_LINK_NAME 
2. The log of update-alternatives is in wrong directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34631</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-07-17 07:31:35 +0000</bug_when>
    <thetext>(In reply to comment #0)
...
&gt; 2. The log of update-alternatives is in wrong directory.

It is not an update-alternatives issue, it is run-postinsts issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34693</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-07-19 08:11:47 +0000</bug_when>
    <thetext>Merge into master:
http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=b45f322abfa72fb0330aac9a1e4c86aebcc4598e

http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=b03c670d44b28c673393468bbe62919f3f8186de

http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=cfe3bb097df2a9e6488b4d50f61311b97959ed26</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>