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
This commit is contained in:
Mykola Grymalyuk
2022-10-04 17:18:48 -06:00
parent ca5771b1c9
commit 85ca3e2d27

View File

@@ -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