[isar-cip-core][PATCH v5 1/3] initramfs-*-hook: Add DEBIAN_CONFLICTS


Quirin Gylstorff
 

From: Quirin Gylstorff <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 <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"

--
2.35.1