From 5aaf98f57c46ac1c57782fe54a3ab1d4a46ae3b3 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 16 Sep 2024 21:09:41 +0200 Subject: Kernel: T861: use find over ls when probing for Kernel signing public keys --- packages/linux-kernel/build-kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/linux-kernel/build-kernel.sh') diff --git a/packages/linux-kernel/build-kernel.sh b/packages/linux-kernel/build-kernel.sh index 3ccb15e9..f7b0c597 100755 --- a/packages/linux-kernel/build-kernel.sh +++ b/packages/linux-kernel/build-kernel.sh @@ -35,7 +35,7 @@ done TRUSTED_KEYS_FILE=trusted_keys.pem # start with empty key file echo -n "" > $TRUSTED_KEYS_FILE -CERTS=$(ls ../../../data/live-build-config/includes.chroot/var/lib/shim-signed/mok/*.pem) +CERTS=$(find ../../../data/live-build-config/includes.chroot/var/lib/shim-signed/mok -name "*.pem" -type f) if [ ! -z "${CERTS}" ]; then # add known public keys to Kernel certificate chain for file in $CERTS; do -- cgit v1.2.3