diff --git a/resources/sys_patch.py b/resources/sys_patch.py index baaa1b1b9..6b1342ae9 100644 --- a/resources/sys_patch.py +++ b/resources/sys_patch.py @@ -368,6 +368,8 @@ class PatchSysVolume: for file in Path("/Library/Extensions").glob("*.kext"): if datetime.fromtimestamp(file.stat().st_mtime) < datetime(2021, 10, 1): print(f" - Relocating {file.name} kext to {relocation_path}") + if Path(relocation_path) / Path(file.name).exists(): + utilities.elevated(["rm", "-Rf", relocation_path / Path(file.name)]) utilities.elevated(["mv", file, relocation_path]) def write_patchset(self, patchset):