Rakesh Kumar
unread,Sep 3, 2024, 9:17:01 AM9/3/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to isar-...@googlegroups.com, jan.k...@siemens.com, cedric.h...@siemens.com, Rakesh Kumar
Fixed an issue in the hook_error function where the second
parameter ($2) was incorrectly referenced in the error message output.
The correct first parameter ($1) is now used to ensure that the
specified argument to hook_error is correctly logged into the logfile.
Signed-off-by: Rakesh Kumar <
kumar....@siemens.com>
---
.../initramfs-tee-supplicant-hook/files/tee-supplicant.hook | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/tee-supplicant.hook b/meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/tee-supplicant.hook
index 3e6adbed..3e2f4016 100644
--- a/meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/tee-supplicant.hook
+++ b/meta/recipes-initramfs/initramfs-tee-supplicant-hook/files/tee-supplicant.hook
@@ -24,7 +24,7 @@ esac
. /usr/share/initramfs-tools/hook-functions
hook_error() {
- echo "(ERROR): $2" >&2
+ echo "(ERROR): $1" >&2
exit 1
}
--
2.39.2