From 939e942f5003fbc6114ec5437f583ce58d8b5aa4 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Wed, 19 May 2021 12:32:04 -0600 Subject: [PATCH] Update SysPatch.py --- Resources/SysPatch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index 47f218b77..4a7436121 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -25,7 +25,10 @@ class PatchSysVolume: self.sip_status = None # TODO: Put this in a better place - self.mount_location = "/System/Volumes/Update/mnt1" + if self.constants.recovery_status is True: + self.mount_location = self.constants.payload_mnt1_path + else: + self.mount_location = "/System/Volumes/Update/mnt1" self.mount_extensions = f"{self.mount_location}/System/Library/Extensions" self.mount_frameworks = f"{self.mount_location}/System/Library/Frameworks" self.mount_lauchd = f"{self.mount_location}/System/Library/LaunchDaemons" @@ -154,7 +157,6 @@ class PatchSysVolume: if not Path(self.constants.payload_mnt1_path).exists(): print("- Creating mnt1 folder") Path(self.constants.payload_mnt1_path).mkdir() - self.mount_location = self.constants.payload_mnt1_path else: root_partition_info = plistlib.loads(subprocess.run("diskutil info -plist /".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode()) self.root_mount_path = root_partition_info["DeviceIdentifier"]