fix search pattern for sbverify

This commit is contained in:
Radon 2025-09-26 17:45:04 -05:00
parent 5549f8fd1c
commit 7229ab56df

View File

@ -127,7 +127,7 @@ check_kernel_signature() {
local output
output=$(sbverify --list "$kernel_file" 2>&1)
if [[ -n "$output" ]] && ([[ "$output" == *"signature"* ]] || [[ "$output" == *"issuer"* ]] || [[ "$output" == *"Certificate"* ]]); then
if [[ -n "$output" ]] && ([[ "$output" == *"issuer"* ]] || [[ "$output" == *"certificate"* ]]); then
return 0
fi
@ -215,7 +215,7 @@ sign_kernel() {
local kern_file="$2"
# Step 1: Check if the kernel is already signed
log "[Step 1] Checking if '$kern_version' is already signed..."
log "[Step 1] Checking if '$kern_version' [$kern_file] is already signed..."
if check_kernel_signature "$kern_file"; then
log "'$kern_version' is already signed, skipping"
return