Bug 4855

Summary: update-alternatives error for iproute2
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: connectivityAssignee: Yi Zhao <yi.zhao>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: ke.zou, meta.mr.watcher, meta.watcher, ning.zhang, sgw, yi.zhao
Version: 1.5   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Yi Zhao 2013-07-16 10:36:19 UTC
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 += "iproute2"
3. Build the image and bootup.

After the system bootup, there is a file named "1" 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.
Comment 1 Yi Zhao 2013-07-17 07:31:35 UTC
(In reply to comment #0)
...
> 2. The log of update-alternatives is in wrong directory.

It is not an update-alternatives issue, it is run-postinsts issue.