mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Add disk picker
This commit is contained in:
@@ -130,6 +130,11 @@ class PatchSysVolume:
|
|||||||
|
|
||||||
if self.constants.recovery_status is True:
|
if self.constants.recovery_status is True:
|
||||||
print("- Running RecoveryOS logic")
|
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:
|
else:
|
||||||
root_partition_info = plistlib.loads(subprocess.run("diskutil info -plist /".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode())
|
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"]
|
self.root_mount_path = root_partition_info["DeviceIdentifier"]
|
||||||
|
|||||||
Reference in New Issue
Block a user