Compare commits
2 Commits
5549f8fd1c
...
631d15c06a
Author | SHA1 | Date | |
---|---|---|---|
631d15c06a | |||
7229ab56df |
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user