Skip to content

Commit

Permalink
Alert users to kernel module signing failures using existing warn fun…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
KernelGhost committed Mar 5, 2025
1 parent d4e8f8a commit 38bcfae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dkms.in
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,9 @@ prepare_and_actual_build()

if (( do_signing )); then
echo "Signing module $built_module"
"$sign_file" "$sign_hash" "$mok_signing_key" "$mok_certificate" "$built_module" 2>/dev/null
if ! signing_command_output=$("$sign_file" "$sign_hash" "$mok_signing_key" "$mok_certificate" "$built_module" 2>&1); then
warn "Failed to sign module '$built_module'!" "$signing_command_output"
fi
fi

if [[ $module_compressed_suffix = .gz ]]; then
Expand Down

0 comments on commit 38bcfae

Please sign in to comment.