]> code.ossystems Code Review - openembedded-core.git/commit
rootfs.py: change the logic in _uninstall_unneeded
authorChen Qi <Qi.Chen@windriver.com>
Tue, 17 Jun 2014 05:39:05 +0000 (13:39 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jun 2014 07:52:38 +0000 (08:52 +0100)
commitd51b1ced88958d31a1596e37db871257fe013446
tree3e401de1c69f3aedf95c470a137b92f7e99d6215
parentd1369fe95ac6732e5747873eccd6a1e74359cea4
rootfs.py: change the logic in _uninstall_unneeded

Previously, if we have 'package-management' and 'read-only-rootfs'
both in IMAGE_FEATRUES, we would meet the following error at system
start-up.

rm: can't remove '/etc/rcS.d/S99run-postinsts': Read-only file system

However, what's really expected is that when there's no postinstall
script at system start-up, the /etc/rcS.d/S99run-postinsts should not
even be there.

Whether or not to remove the init script symlinks to run-postinsts should
not depend on whether we have 'package-management' in IMAGE_FEATURES; rather,
it should only depend on whether we have any postinstall script left to run
at system start-up.

This patch changes the _uninstall_unneeded function based on the logic
stated above.

[YOCTO #6257]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/rootfs.py