]> code.ossystems Code Review - openembedded-core.git/commit
classes: Fix alternatives and rc.d ordering
authorDavid Vincent <freesilicon@gmail.com>
Wed, 25 Jan 2017 13:03:06 +0000 (15:03 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Feb 2017 11:59:55 +0000 (11:59 +0000)
commitb0c70bef015f1b2a30556a5db5e255592d5bf316
tree8e694741f4a679fa4a2fefad16ba5cce554d913c
parent79f821fb6c1b425ca5cb5e6db360c2743d6c989e
classes: Fix alternatives and rc.d ordering

When using an alternative as an initscript, the ordering between
update-rc.d and update-alternatives tasks during prerm and postinst
tasks must always be the following in order to work:
  * prerm:
    - stop daemon
    - remove alternative

  * postinst:
    - add alternative
    - start daemon

This patchset adds comments to the scripts generated by both classes and
organize the generated sections based on those comments.

[YOCTO #10433]

Signed-off-by: David Vincent <freesilicon@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit aa87b1a4dcc14e4dfe719b6c55045c5662bc59c2)
meta/classes/update-alternatives.bbclass
meta/classes/update-rc.d.bbclass