[cip-dev][isar-cip-core][PATCH 1/3] initramfs-crypt-hook: suppress stderr output from stopping watchdog
Quirin Gylstorff <[email protected]> Thu, 16 Jul 2026 15:07:42 +0200
| Newsgroups | org.cip-project.lists.cip-dev |
|---|---|
| Message-ID | <[email protected]> |
From: Quirin Gylstorff <[email protected]> In case the watchdog timeout is set to 0, the function immediately returns and the process with the watchdog pid will be stopped, this will lead to the following error message: ``` resize2fs 1.47.2 (1-Jan-2025) Resizing the filesystem on /dev/mapper/encrypted_userdata to 2043904 (4k) blocks. The filesystem on /dev/mapper/encrypted_userdata is now 2043904 (4k) blocks long. Wiped slot 0. sh: can't kill pid 302: No such process ``` Reported-by: Stefan, Koch <[email protected]> Signed-off-by: Quirin Gylstorff <[email protected]> --- recipes-initramfs/initramfs-crypt-hook/files/local-top-complete | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-initramfs/initramfs-crypt-hook/files/local-top-complete b/recipes-initramfs/initramfs-crypt-hook/files/local-top-complete index b033597..397b315 100644 --- a/recipes-initramfs/initramfs-crypt-hook/files/local-top-complete +++ b/recipes-initramfs/initramfs-crypt-hook/files/local-top-complete @@ -371,5 +371,5 @@ if [ -x /usr/bin/tpm2_shutdown ]; then fi if [ -n "$watchdog_pid" ]; then - kill "$watchdog_pid" + kill "$watchdog_pid" > /dev/null 2>&1 fi -- 2.53.0