From patchwork Tue Aug 9 10:41:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 12939509 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 49020C25B0D for ; Tue, 9 Aug 2022 10:41:07 +0000 (UTC) Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) by mx.groups.io with SMTP id smtpd.web09.10134.1660041664574372557 for ; Tue, 09 Aug 2022 03:41:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=Quirin.Gylstorff@siemens.com header.s=fm2 header.b=Zb8o3u8S; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.227, mailfrom: fm-51332-20220809104102b8cc4167b80397b013-cbajqg@rts-flowmailer.siemens.com) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20220809104102b8cc4167b80397b013 for ; Tue, 09 Aug 2022 12:41:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=Quirin.Gylstorff@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:References:In-Reply-To; bh=5cbb1r00jgIEkcNlN6fcDY8t08oC6fqngs/nGkMjYjQ=; b=Zb8o3u8SzZAXri69daXrLMcDJa6Dorg2ZY/U9QmMl5ThZYM8rb/2Ddd3lM/szP+RMqxNSg j5Ge7aUttMCIMKpKfMlInDe0iuA4UR1ALUBTqYgPgtxM00l5jms/ZWZlFOyL2wr0IlX7Fj7M l1R11E9foZH1SGPlyEuXOSrHRevI4=; From: Quirin Gylstorff To: jan.kiszka@siemens.com, cip-dev@lists.cip-project.org Subject: [cip-dev][isar-cip-core][PATCH v4 3/3] initramfs-*-hook: Add DEBIAN_CONFLICTS Date: Tue, 9 Aug 2022 12:41:00 +0200 Message-Id: <20220809104100.469265-4-Quirin.Gylstorff@siemens.com> In-Reply-To: <20220809104100.469265-1-Quirin.Gylstorff@siemens.com> References: <20220809104100.469265-1-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-51332:519-21489:flowmailer 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 ; Tue, 09 Aug 2022 10:41:07 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/9146 From: Quirin Gylstorff If both initramfs-abrootfs-hook and initramfs-verity-hook are installed the system will enter a reboot loop. Signed-off-by: Quirin Gylstorff --- .../initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb | 1 + .../initramfs-verity-hook/initramfs-verity-hook_0.1.bb | 1 + 2 files changed, 2 insertions(+) diff --git a/recipes-initramfs/initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb b/recipes-initramfs/initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb index 1693e85..8b1536f 100644 --- a/recipes-initramfs/initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb +++ b/recipes-initramfs/initramfs-abrootfs-hook/initramfs-abrootfs-hook_0.1.bb @@ -13,6 +13,7 @@ inherit dpkg-raw DEBIAN_DEPENDS = "initramfs-tools" +DEBIAN_CONFLICTS = "initramfs-verity-hook" SRC_URI += "file://abrootfs.hook \ file://abrootfs.script" diff --git a/recipes-initramfs/initramfs-verity-hook/initramfs-verity-hook_0.1.bb b/recipes-initramfs/initramfs-verity-hook/initramfs-verity-hook_0.1.bb index 60ee8da..5998908 100644 --- a/recipes-initramfs/initramfs-verity-hook/initramfs-verity-hook_0.1.bb +++ b/recipes-initramfs/initramfs-verity-hook/initramfs-verity-hook_0.1.bb @@ -23,6 +23,7 @@ TEMPLATE_FILES = "verity.script.tmpl" TEMPLATE_VARS += "VERITY_BEHAVIOR_ON_CORRUPTION" DEBIAN_DEPENDS = "initramfs-tools, cryptsetup" +DEBIAN_CONFLICTS = "initramfs-abrootfs-hook" VERITY_IMAGE_RECIPE ?= "cip-core-image"