From 69e50aeb6d40298430686aea92398bf45f1f3276 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sat, 16 Oct 2021 23:21:29 -0600 Subject: [PATCH] Fix incorrectly parsing SecureBootModel status Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/581 --- resources/utilities.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/utilities.py b/resources/utilities.py index 6d1d4b2ea..fb0aaf80f 100644 --- a/resources/utilities.py +++ b/resources/utilities.py @@ -196,10 +196,10 @@ def patching_status(os_sip, os): # Catalina and older supports individually disabling Library Validation amfi_enabled = False - if ( - get_nvram("HardwareModel", "94B73556-2197-4702-82A8-3E1337DAFBFB", decode=False) - and get_nvram("HardwareModel", "94B73556-2197-4702-82A8-3E1337DAFBFB", decode=False) not in constants.Constants().sbm_values - ): + if get_nvram("HardwareModel", "94B73556-2197-4702-82A8-3E1337DAFBFB", decode=False): + if get_nvram("HardwareModel", "94B73556-2197-4702-82A8-3E1337DAFBFB", decode=False) not in constants.Constants().sbm_values: + sbm_enabled = False + else: sbm_enabled = False if get_nvram("csr-active-config", decode=False) and csr_decode(get_nvram("csr-active-config", decode=False), os_sip) is False: