Skip to content

Instantly share code, notes, and snippets.

@hasselmm
Created November 9, 2024 13:18
Show Gist options
  • Save hasselmm/250a1a7fa6227d9b3925a48c01bd530e to your computer and use it in GitHub Desktop.
Save hasselmm/250a1a7fa6227d9b3925a48c01bd530e to your computer and use it in GitHub Desktop.
Properly from missing mmx64.efi for failed Linux installation
import firmware_variables as firmware
mok_namespace = "{605DAB50-E046-4300-ABB6-3DD810DD8B23}"
mok_variables = ["MokNew", "MokAuth"]
with firmware.privileges():
for name in mok_variables:
try:
firmware.delete_variable(name, namespace=mok_namespace)
print(f"- firmware variable {name} removed")
except Exception as error:
print(name, error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment