]> code.ossystems Code Review - openembedded-core.git/commit
update-rc.d: check also that symlinks are valid
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Wed, 16 Jan 2013 11:58:55 +0000 (13:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Jan 2013 12:07:55 +0000 (12:07 +0000)
commit4b63e73422ea25aba1bde0beddb02bc04948e13c
treed044c531693c1962c9fb8291dfaa65c048df3887
parent0ada16fe509d9a8608c05d16666243c8ebe4d3b3
update-rc.d: check also that symlinks are valid

Running:

update-rc.d -r /path/to/target/rootfs basename defaults

at do_rootfs time in package postinstall stage, when
/path/to/target/rootfs/etc/init.d/basename is a symlink and points to some path
on target (for example: /etc/init.d/basename.some_package), would fail and the
postinstall execution would be postponed for first boot, on target.

This patch adds the posibility to verify whether the file the symlink
points to actually exists in the target rootfs.

[YOCTO #3716]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch [new file with mode: 0644]
meta/recipes-core/update-rc.d/update-rc.d_0.7.bb