mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Kernel: T861: use find over ls when probing for Kernel signing public keys
This commit is contained in:
parent
928c1f505b
commit
5aaf98f57c
@ -35,7 +35,7 @@ done
|
|||||||
TRUSTED_KEYS_FILE=trusted_keys.pem
|
TRUSTED_KEYS_FILE=trusted_keys.pem
|
||||||
# start with empty key file
|
# start with empty key file
|
||||||
echo -n "" > $TRUSTED_KEYS_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
|
if [ ! -z "${CERTS}" ]; then
|
||||||
# add known public keys to Kernel certificate chain
|
# add known public keys to Kernel certificate chain
|
||||||
for file in $CERTS; do
|
for file in $CERTS; do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user