Add gross method of fixing secureboot garbage (for testing purposes)

This commit is contained in:
2026-01-19 18:50:36 -05:00
parent af74d63ac6
commit 932a69b3f1

10
scripts/bootables-sbsign Normal file
View 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