kdk_handler.py: Avoid double unmount

This commit is contained in:
Mykola Grymalyuk
2023-02-08 13:15:19 -07:00
parent 0d38bc0edf
commit 8b18c59d8a
2 changed files with 10 additions and 9 deletions

View File

@@ -187,7 +187,7 @@ class PatchSysVolume:
# Note it's a folder, not a file
utilities.elevated(["cp", "-r", cs_path, f"{self.constants.payload_path}/IOHIDEventDriver_CodeSignature.bak"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
logging.info("- Merging KDK with Root Volume")
logging.info(f"- Merging KDK with Root Volume: {kdk_path.name}")
utilities.elevated(
# Only merge '/System/Library/Extensions'
# 'Kernels' and 'KernelSupport' is wasted space for root patching (we don't care above dev kernels)