]> code.ossystems Code Review - openembedded-core.git/commit
image: create symlinks needed for merged /usr
authorAmarnath Valluri <amarnath.valluri@intel.com>
Wed, 14 Jun 2017 11:30:45 +0000 (14:30 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Jul 2017 13:38:09 +0000 (14:38 +0100)
commit3f978f24ae2cf831bd2b82270f6353edda6364a5
tree622f4ae4c331e6633d31124389f8880bfddb31ec
parent7ca0415c26d5a8b00716b0a49f069e26fdeac30c
image: create symlinks needed for merged /usr

Prepare the symlinks required for merged /usr at the time of rootfs creation.

The links created in rootfs are:
/bin --> /usr/sbin
/sbin --> /usr/sbin
/lib --> /usr/lib
/lib64 --> /usr/lib64

We cannot make these symlinks as part of 'base-files' or some other package.
Because at rootfs creation, installation of the package(say kernel) that depends
on these root folders/links fails, if package manager installs this package
prior to base-files.

These symbolic links in top level folder should be present as long as
 - kernel tools use /lib/{module,firmware}
 - shell scripts uses "#!/bin/sh"

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass