Skip to contentSkip to conversation

grubby: fix confilict with debianutils

PATCH Superseded Hongxu Jia 1 participant 1 message Jan 10, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Hongxu Jia

author
#0 lore raw

PATCH 1/1 grubby: fix confilict with debianutils

Both of recipe grubby and debianutils provides installkernel, use update-alternative to resolve the conflict

---
 meta-initramfs/recipes-devtools/grubby/grubby_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-initramfs/recipes-devtools/grubby/grubby_git.bb +4 -0
index d275387c8..43fcc1aee 100644
@@ -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.*)'
Signature · 1 line
2.33.0