Update SysPatch.py

This commit is contained in:
Mykola Grymalyuk
2021-05-19 13:15:46 -06:00
committed by GitHub
parent d8258a73fd
commit 0130fce0c6

View File

@@ -27,7 +27,7 @@ class PatchSysVolume:
# TODO: Put this in a better place
if self.constants.recovery_status is True:
if not Path("/Volumes/mnt1").exists:
Path("/Volumes/mnt1").mkdir()
self.elevated(["mkdir", "/Volumes/mnt1"], stdout=subprocess.PIPE).stdout.decode().strip().encode()
self.mount_location = "/Volumes/mnt1"
else:
self.mount_location = "/System/Volumes/Update/mnt1"