From 8f13906d2c68004dbdebce22f54741b396e31844 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Sat, 15 May 2021 19:09:25 -0600 Subject: [PATCH] Add disk picker --- Resources/SysPatch.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index 859fe9503..b8ddff6e0 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -130,6 +130,11 @@ class PatchSysVolume: if self.constants.recovery_status is True: print("- Running RecoveryOS logic") + self.root_mount_path = self.recovery_root_mount() + print(f"- Root Mount Path: {self.root_mount_path}") + if not Path(self.mount_location).exists(): + print("- Creating mnt1 folder") + subprocess.run(["mkdir", self.mount_location], stdout=subprocess.PIPE).stdout.decode().strip().encode() 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"]