Skip to contentSkip to conversation

psmisc: Set ALTERNATIVE for pstree to resolve conflict with busybox

PATCH New Frieder Schrempf 1 participant 1 message May 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 psmisc: Set ALTERNATIVE for pstree to resolve conflict with busybox

From: Frieder Schrempf <[email protected]>

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.

---
Changes for v2:
* Remove vscode script

---
 meta/recipes-extended/psmisc/psmisc.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-extended/psmisc/psmisc.inc +2 -0
index a429c2ee96..23e98d21be 100644
@@ -55,3 +55,5 @@ ALTERNATIVE_PRIORITY = "90"
 ALTERNATIVE:killall = "killall"
 
 ALTERNATIVE:fuser = "fuser"
+
+ALTERNATIVE:pstree = "pstree"
Signature · 1 line
2.40.1