diff mbox series

[isar-cip-core] initramfs-overlay-hook: Fix copy_exec input

Message ID 638b9f92-37be-4d7f-b64b-e95fc85da037@siemens.com (mailing list archive)
State New
Headers show
Series [isar-cip-core] initramfs-overlay-hook: Fix copy_exec input | expand

Commit Message

Jan Kiszka Dec. 8, 2024, 12:52 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

This variable name confusion caused breakages when using the hook in an
initramfs where no one else provided the dependencies, e.g. when
initramfs-crypt-hook was not used.

Fixes: 35a226b87671 ("initramfs-overlay-hook: Convert to hook.inc")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 .../initramfs-overlay-hook/initramfs-overlay-hook_0.2.bb        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

d.kauschke154@googlemail.com Dec. 12, 2024, 7:44 a.m. UTC | #1
Hi Jan,
I encountered the same issue with the initramfs-overlay-hook.
I tested your patch successfully on the qemu-arm64 machine.

Thanks for the fix!

David
diff mbox series

Patch

diff --git a/recipes-initramfs/initramfs-overlay-hook/initramfs-overlay-hook_0.2.bb b/recipes-initramfs/initramfs-overlay-hook/initramfs-overlay-hook_0.2.bb
index a9e4ca21..56ae8d27 100644
--- a/recipes-initramfs/initramfs-overlay-hook/initramfs-overlay-hook_0.2.bb
+++ b/recipes-initramfs/initramfs-overlay-hook/initramfs-overlay-hook_0.2.bb
@@ -43,7 +43,7 @@  TEMPLATE_VARS += " INITRAMFS_OVERLAY_STORAGE_PATH \
 DEBIAN_DEPENDS .= ", awk, coreutils, util-linux"
 
 HOOK_ADD_MODULES = "overlay"
-HOOK_ADD_EXECS = "mountpoint awk e2fsck mke2fs"
+HOOK_COPY_EXECS = "mountpoint awk e2fsck mke2fs"
 
 do_install:append() {
     install -m 0755 "${WORKDIR}/${INITRAMFS_OVERLAY_RECOVERY_SCRIPT}" \