]> code.ossystems Code Review - openembedded-core.git/commit
base-files: Check for /run and /var/lock softlinks on upgrade
authorBryan Evenson <bevenson@melinkcorp.com>
Tue, 14 Apr 2015 21:08:15 +0000 (17:08 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Apr 2015 14:02:52 +0000 (15:02 +0100)
commitc1ee31acf509b054453f19cab162dadc295e10a4
tree53f0332ad5f7328175add6951a49ac9c98c6594f
parentd343c6a7369cb409563b8149cbb423a6171221ee
base-files: Check for /run and /var/lock softlinks on upgrade

Commit ea647cd9eebdc3e3121b84074519c4bb305adac9 moved the locations
of /run and /var/lock to match the FHS 3 draft specifications.
However, the install doesn't remove the existing directories.
As a result, upgrading a system may result in /run as a softlink
to /var/run and /var/run as a softlink to /run, creating a circular
link.

During pre-install, check for the existence of the old softlinks and
remove them so the new directories can be installed.

Signed-off-by: Bryan Evenson <bevenson@melinkcorp.com>
meta/recipes-core/base-files/base-files_3.0.14.bb