Skip to content

Commit

Permalink
signing for secure-boot with preexisting keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflight-dk committed Jul 17, 2024
1 parent 43a68da commit cdd70ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.o.cmd
*.o.d
_out/
MOK.*
8 changes: 8 additions & 0 deletions sign_modules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# assumes MOK.priv and MOK.der in the same folder, enrolled to secure-boot

for module in /lib/modules/$(uname -r)/kernel/drivers/video/nvidia*.ko
do
echo "Signing ${module}..."
sudo kmodsign sha512 MOK.priv MOK.der "$module" >> sign_results.out
done

0 comments on commit cdd70ba

Please sign in to comment.