Skip to contentSkip to conversation

grubby: fix conflict with debianutils

PATCH New Hongxu Jia 1 participant 1 message Jan 10, 2022 1 message not in the archive

lore
Share & tools
lore

Hongxu Jia

author
#1 lore raw

PATCH v2 1/1 grubby: fix conflict with debianutils

In reply to a message not in the archive

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