mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 22:50:51 +10:00
sys_patch_mount.py: Fix comment and missing return statement
This commit is contained in:
@@ -109,8 +109,6 @@ class SysPatchMount:
|
|||||||
def _unmount_root_volume(self, ignore_errors: bool = True) -> bool:
|
def _unmount_root_volume(self, ignore_errors: bool = True) -> bool:
|
||||||
"""
|
"""
|
||||||
Unmount the root volume.
|
Unmount the root volume.
|
||||||
|
|
||||||
If applicable, create a snapshot before unmounting.
|
|
||||||
"""
|
"""
|
||||||
if self.xnu_major < os_data.os_data.catalina.value:
|
if self.xnu_major < os_data.os_data.catalina.value:
|
||||||
return True
|
return True
|
||||||
@@ -130,6 +128,8 @@ class SysPatchMount:
|
|||||||
subprocess_wrapper.log(result)
|
subprocess_wrapper.log(result)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
def create_snapshot(self) -> bool:
|
def create_snapshot(self) -> bool:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user