diff mbox series

[isar-cip-core,v4,3/3] initramfs-*-hook: Add DEBIAN_CONFLICTS

Message ID 20220809104100.469265-4-Quirin.Gylstorff@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series clean up kas/opt | expand

Commit Message

Quirin Gylstorff Aug. 9, 2022, 10:41 a.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

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@siemens.com>
---
 .../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 mbox series

Patch

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"