From 9b316bbbca4881fadb3c8528b20366e84d8cc35a Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Wed, 19 May 2021 09:28:20 -0600 Subject: [PATCH] Fix crash on APFS snapshotting --- Resources/SysPatch.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index 6bdb10a17..274715343 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -161,8 +161,10 @@ class PatchSysVolume: print("- Root Volume is already mounted") if patch is True: self.patch_root_vol() + return True else: self.unpatch_root_vol() + return True else: print("- Mounting drive as writable") self.elevated(["mount", "-o", "nobrowse", "-t", "apfs", f"/dev/{self.root_mount_path}", self.mount_location], stdout=subprocess.PIPE).stdout.decode().strip().encode() @@ -170,8 +172,10 @@ class PatchSysVolume: print("- Successfully mounted the Root Volume") if patch is True: self.patch_root_vol() + return True else: self.unpatch_root_vol() + return True else: print("- Failed to mount the Root Volume") else: