From 9a68ce67eb0dd91e05df9b4306239727ddd9f78c Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Wed, 19 May 2021 10:48:10 -0600 Subject: [PATCH] Update SysPatch.py --- Resources/SysPatch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index 4191f8bef..a713c3c7b 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -151,9 +151,10 @@ class PatchSysVolume: if not self.root_mount_path: return print(f"- Root Mount Path: {self.root_mount_path}") - if not Path(self.mount_location).exists(): + if not Path(self.constants.payload_mnt1_path).exists(): print("- Creating mnt1 folder") - subprocess.run(["mkdir", self.mount_location], stdout=subprocess.PIPE).stdout.decode().strip().encode() + 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"]