Message ID | 20220110075538.121858-1-hongxu.jia@windriver.com |
---|---|
State | New |
Headers | show |
Series | [meta-initramfs] grubby: fix confilict with debianutils | expand |
diff --git a/meta-initramfs/recipes-devtools/grubby/grubby_git.bb b/meta-initramfs/recipes-devtools/grubby/grubby_git.bb index d275387c8..43fcc1aee 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.*)'
Both of recipe grubby and debianutils provides installkernel, use update-alternative to resolve the conflict Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> --- meta-initramfs/recipes-devtools/grubby/grubby_git.bb | 4 ++++ 1 file changed, 4 insertions(+)