Skip to contentSkip to conversation

initramfs-overlay-hook: Fix copy_exec input

PATCH In review Jan Kiszka 2 participants 2 messages Dec 8, 2024 – Dec 12, 2024

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 initramfs-overlay-hook: Fix copy_exec input

From: Jan Kiszka <[email protected]>

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")
---
 .../initramfs-overlay-hook/initramfs-overlay-hook_0.2.bb        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-initramfs/initramfs-overlay-hook/initramfs-overlay-hook_0.2.bb +1 -1
index a9e4ca21..56ae8d27 100644
@@ -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}" \
Signature · 1 line
2.43.0
#1 lore raw

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