Add gross method of fixing secureboot garbage (for testing purposes)
This commit is contained in:
10
scripts/bootables-sbsign
Normal file
10
scripts/bootables-sbsign
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
signfile(){
|
||||||
|
if ! sbverify --cert "/boot/key/MOK.crt" "$FILE" &>/dev/null; then
|
||||||
|
sbsign --key "/boot/key/MOK.key" --cert "/boot/key/MOK.crt" --output "$FILE" "$FILE"
|
||||||
|
}
|
||||||
|
|
||||||
|
find /boot -type d | while read -r dir; do
|
||||||
|
signfile "$dir"
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user