]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
psmisc: Set ALTERNATIVE for pstree to resolve conflict with busybox
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Tue, 23 May 2023 15:39:55 +0000 (17:39 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 May 2023 09:29:05 +0000 (10:29 +0100)
commitdeb2176df76dcb16c0d90072ad63d308a0ab1158
treefb67955eb7ef7f609af55f59c1b2850aa34ee56f
parentc801a215fb2d53bdec7f4c9a20ff7969e8071e5c
psmisc: Set ALTERNATIVE for pstree to resolve conflict with busybox

If pstree in busybox is enabled there is a conflict with pstree from
psmisc resulting in:

  do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If
  the intention is to defer them to first boot, then please place
  them into pkg_postinst_ontarget:${PN} ().
  Deferring to first boot via 'exit 1' is no longer supported.

And more detailed in do_rootfs.log:

  update-alternatives: Error: not linking [...]/rootfs/usr/bin/pstree to /bin/busybox.nosuid since [...]/rootfs/usr/bin/pstree exists and is not a link

On order to fix this set ALTERNATIVE:pstree accordingly.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/psmisc/psmisc.inc