[cip-dev][isar-cip-core][PATCH 2/3] initramfs-crypt-hook: suppress stderr log from cryptsetup

Quirin Gylstorff <[email protected]> Thu, 16 Jul 2026 15:07:43 +0200
Newsgroups org.cip-project.lists.cip-dev
Message-ID <[email protected]>
From: Quirin Gylstorff <[email protected]>

LuksDump prints additional information to stderr on Debian Sid,
this information is not necessary for the grep command. Suppress
the messages to avoid cluttering the boot log.

Signed-off-by: Quirin Gylstorff <[email protected]>
---
 .../initramfs-crypt-hook/files/local-bottom-complete            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete b/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete
index 120ac29..0821566 100644
--- a/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete
+++ b/recipes-initramfs/initramfs-crypt-hook/files/local-bottom-complete
@@ -75,7 +75,7 @@ for partition_set in $partition_sets; do
 		continue
 	fi
 	if /usr/sbin/cryptsetup luksDump --batch-mode "$part_device" \
-			| grep -q "luks2"; then
+			2>/dev/null | grep -q "luks2" ; then
 		mount_partition "$decrypted_part" "${rootmnt}""$partition_mountpoint"
 	else
 		mount_partition "$part_device" "$rootmnt""$partition_mountpoint"
-- 
2.53.0