mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
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:
@@ -136,7 +136,7 @@ class PatchSysVolume:
|
|||||||
utilities.elevated(
|
utilities.elevated(
|
||||||
# Only merge '/System/Library/Extensions'
|
# Only merge '/System/Library/Extensions'
|
||||||
# 'Kernels' and 'KernelSupport' is wasted space for root patching (we don't care above dev kernels)
|
# '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
|
stdout=subprocess.PIPE, stderr=subprocess.STDOUT
|
||||||
)
|
)
|
||||||
# During reversing, we found that kmutil uses this path to determine whether the KDK was successfully merged
|
# During reversing, we found that kmutil uses this path to determine whether the KDK was successfully merged
|
||||||
|
|||||||
Reference in New Issue
Block a user