From bf3cc2c9d140fb4449a546126207eb78477e809b Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Sun, 19 Sep 2021 15:29:48 -0600 Subject: [PATCH] Adjust LV check --- Resources/SysPatch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index f34df6575..67d72d730 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -422,10 +422,11 @@ set million colour before rebooting""" ) Utilities.process_status(self.elevated(["chmod", "755", f"{self.mount_lauchd}/IOHID-Fixup.plist"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) Utilities.process_status(self.elevated(["chown", "root:wheel", f"{self.mount_lauchd}/IOHID-Fixup.plist"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) - else: + elif Utilities.check_oclp_boot() is False: + # Assume non-OCLP Macs don't have _cs_require_lv print("- Disabling Library Validation") Utilities.process_status( - self.elevated(["defaults", "write", "/Library/Preferences/com.apple.security.libraryvalidation.plist", "-bool", "true"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + self.elevated(["defaults", "write", "/Library/Preferences/com.apple.security.libraryvalidation.plist", "DisableLibraryValidation", "-bool", "true"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) ) def gpu_accel_legacy_extended_ts2(self):