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 <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Hongxu Jia 2022-01-10 00:08:47 -08:00 committed by Khem Raj
parent c950d3966b
commit 0e93a3d7ee

View File

@ -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.*)'