From patchwork Mon Jan 10 08:08:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 2203 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E90DBC433FE for ; Mon, 10 Jan 2022 08:08:51 +0000 (UTC) Received: from mail5.wrs.com (mail5.wrs.com [192.103.53.11]) by mx.groups.io with SMTP id smtpd.web08.28918.1641802131434980470 for ; Mon, 10 Jan 2022 00:08:51 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 192.103.53.11, mailfrom: hongxu.jia@windriver.com) Received: from ala-exchng01.corp.ad.wrs.com (ala-exchng01.corp.ad.wrs.com [147.11.82.252]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id 20A88mIU029775 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jan 2022 00:08:48 -0800 Received: from ala-exchng01.corp.ad.wrs.com (147.11.82.252) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 10 Jan 2022 00:08:47 -0800 Received: from ala-lpggp7.wrs.com (147.11.105.171) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server id 15.1.2242.12 via Frontend Transport; Mon, 10 Jan 2022 00:08:47 -0800 From: Hongxu Jia To: CC: Subject: [meta-initramfs][PATCH V2] grubby: fix conflict with debianutils Date: Mon, 10 Jan 2022 00:08:47 -0800 Message-ID: <20220110080847.64738-1-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <16C8D9A296F94165.27414@lists.openembedded.org> References: <16C8D9A296F94165.27414@lists.openembedded.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 10 Jan 2022 08:08:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/94710 Both of recipe grubby and debianutils provides installkernel, use update-alternative to resolve the conflict Signed-off-by: Hongxu Jia --- 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 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.*)'