forked from tinygrad/open-gpu-kernel-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
signing for secure-boot with preexisting keys
- Loading branch information
1 parent
43a68da
commit cdd70ba
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*.o.cmd | ||
*.o.d | ||
_out/ | ||
MOK.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|