Bug 4855 - update-alternatives error for iproute2
Summary: update-alternatives error for iproute2
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5
Assignee: Yi Zhao
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-07-16 10:36 UTC by Yi Zhao
Modified: 2013-07-19 08:11 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.