Created
November 9, 2024 13:18
-
-
Save hasselmm/250a1a7fa6227d9b3925a48c01bd530e to your computer and use it in GitHub Desktop.
Properly from missing mmx64.efi for failed Linux installation
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
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