mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 03:50:14 +10:00
sys_patch.py: Clean kmutil comments
This commit is contained in:
@@ -245,9 +245,9 @@ class PatchSysVolume:
|
|||||||
# - kextcache always returns 0, even if it fails
|
# - kextcache always returns 0, even if it fails
|
||||||
# - Check the output for 'KernelCache ID' to see if the cache was successfully rebuilt
|
# - Check the output for 'KernelCache ID' to see if the cache was successfully rebuilt
|
||||||
# kmutil notes:
|
# kmutil notes:
|
||||||
# - kmutil will return 71 on failure to build KCs
|
# - will return 71 on failure to build KCs
|
||||||
# - kmutil will sometimes have a stroke and return a negative value even if it succeeds
|
# - will return -10 if the volume is missing (ie. unmounted by another process)
|
||||||
if result.returncode > 0 or (self.constants.detected_os < os_data.os_data.catalina and "KernelCache ID" not in result.stdout.decode()):
|
if result.returncode != 0 or (self.constants.detected_os < os_data.os_data.catalina and "KernelCache ID" not in result.stdout.decode()):
|
||||||
self.success_status = False
|
self.success_status = False
|
||||||
print("- Unable to build new kernel cache")
|
print("- Unable to build new kernel cache")
|
||||||
print(f"\nReason for Patch Failure({result.returncode}):")
|
print(f"\nReason for Patch Failure({result.returncode}):")
|
||||||
@@ -258,7 +258,7 @@ class PatchSysVolume:
|
|||||||
input("Press [ENTER] to continue")
|
input("Press [ENTER] to continue")
|
||||||
else:
|
else:
|
||||||
self.success_status = True
|
self.success_status = True
|
||||||
print(f"- Successfully built new kernel cache({result.returncode})")
|
print("- Successfully built new kernel cache")
|
||||||
if self.root_supports_snapshot is True:
|
if self.root_supports_snapshot is True:
|
||||||
print("- Creating new APFS snapshot")
|
print("- Creating new APFS snapshot")
|
||||||
bless = utilities.elevated(
|
bless = utilities.elevated(
|
||||||
|
|||||||
Reference in New Issue
Block a user