mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Update SysPatch.py
This commit is contained in:
@@ -172,7 +172,11 @@ class PatchSysVolume:
|
|||||||
self.unpatch_root_vol()
|
self.unpatch_root_vol()
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
print("- Mounting drive as writable")
|
if self.constants.recovery_status is True:
|
||||||
|
print("- Mounting drive as writable in Recovery")
|
||||||
|
self.elevated(["mount", "-t", "apfs", "-rw", f"/dev/{self.root_mount_path}", self.mount_location], stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
||||||
|
else:
|
||||||
|
print("- Mounting drive as writable in OS")
|
||||||
self.elevated(["mount", "-o", "nobrowse", "-t", "apfs", f"/dev/{self.root_mount_path}", self.mount_location], stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
self.elevated(["mount", "-o", "nobrowse", "-t", "apfs", f"/dev/{self.root_mount_path}", self.mount_location], stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
||||||
if Path(self.mount_extensions).exists():
|
if Path(self.mount_extensions).exists():
|
||||||
print("- Successfully mounted the Root Volume")
|
print("- Successfully mounted the Root Volume")
|
||||||
|
|||||||
Reference in New Issue
Block a user