From 162748b86876bc9884beb750655be0c3af212da1 Mon Sep 17 00:00:00 2001 From: egg12138 Date: Wed, 16 Jul 2025 15:43:59 +0800 Subject: [PATCH] yocto: set alternative priority for busybox * busybox ALTERNATIVE_PRIORITY is default to be 50 in poky, while util-linux is 60. openeuler standard pkggroups introduce pkggroup-core-full-cmdline and pkggroup-core-base-utils which brings util-linux, make some util symbolic links pointing to util-linux. There for some unexpected behaviours come. * set priority to 1000 when INIT_MANAGER = busybox or none as a workaround. Signed-off-by: egg12138 --- meta-openeuler/recipes-core/busybox/busybox_%.bbappend | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-openeuler/recipes-core/busybox/busybox_%.bbappend b/meta-openeuler/recipes-core/busybox/busybox_%.bbappend index be4c7f19fbf..4c328290e54 100644 --- a/meta-openeuler/recipes-core/busybox/busybox_%.bbappend +++ b/meta-openeuler/recipes-core/busybox/busybox_%.bbappend @@ -2,6 +2,7 @@ PV = "1.36.1" # use openEuler defconfig FILESEXTRAPATHS:prepend := "${THISDIR}/files/:" +ALTERNATIVE_PRIORITY:pn-${BPN} = "${@bb.utils.contains_any('INIT_MANAGER', ['mdev-busybox', 'none'], '150', '50', d)}" # files, patches can't be applied in openeuler or conflict with openeuler SRC_URI:remove = " \ -- Gitee