From 0e93a3d7eea111ef1730fc718137005f6e2a821c Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Mon, 10 Jan 2022 00:08:47 -0800 Subject: grubby: fix conflict with debianutils Both of recipe grubby and debianutils provides installkernel, use update-alternative to resolve the conflict Signed-off-by: Hongxu Jia Signed-off-by: Khem Raj --- meta-initramfs/recipes-devtools/grubby/grubby_git.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-initramfs/recipes-devtools/grubby/grubby_git.bb b/meta-initramfs/recipes-devtools/grubby/grubby_git.bb index d275387c85..43fcc1aee8 100644 --- a/meta-initramfs/recipes-devtools/grubby/grubby_git.bb +++ b/meta-initramfs/recipes-devtools/grubby/grubby_git.bb @@ -38,4 +38,8 @@ do_install_ptest() { RDEPENDS:${PN} += "bash" RDEPENDS:${PN}-ptest = "util-linux-getopt bash" +inherit update-alternatives +ALTERNATIVE_${PN} = "installkernel" +ALTERNATIVE_LINK_NAME[installkernel] = "${sbindir}/installkernel" + COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)' -- cgit v1.2.3-54-g00ecf