From 85ca3e2d2793eae5230c4ca40bcad36c922671c7 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 4 Oct 2022 17:18:48 -0600 Subject: [PATCH] sys_patch: Switch to rsync for KDK merging When using N-1 system, ditto will sometimes refuse to sync when the source is older than the destination --- resources/sys_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/sys_patch.py b/resources/sys_patch.py index 446baff94..ad9aa0d33 100644 --- a/resources/sys_patch.py +++ b/resources/sys_patch.py @@ -136,7 +136,7 @@ class PatchSysVolume: utilities.elevated( # Only merge '/System/Library/Extensions' # 'Kernels' and 'KernelSupport' is wasted space for root patching (we don't care above dev kernels) - ["ditto", f"{kdk_path}/System/Library/Extensions", f"{self.mount_location}/System/Library/Extensions"], + ["rsync", "-r", "-i", "-a", f"{kdk_path}/System/Library/Extensions/", f"{self.mount_location}/System/Library/Extensions"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT ) # During reversing, we found that kmutil uses this path to determine whether the KDK was successfully merged