From d2312e3cce17aa0c41d324b34cee0ad1d3acc5f1 Mon Sep 17 00:00:00 2001 From: Jazzzny Date: Fri, 28 Jul 2023 21:18:12 -0400 Subject: [PATCH] Add workaround for unmount --- resources/sys_patch/sys_patch.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/sys_patch/sys_patch.py b/resources/sys_patch/sys_patch.py index 5e2bd4238..fd24fecea 100644 --- a/resources/sys_patch/sys_patch.py +++ b/resources/sys_patch/sys_patch.py @@ -417,9 +417,11 @@ class PatchSysVolume: """ Unmount root volume """ - - logging.info("- Unmounting Root Volume (Don't worry if this fails)") - utilities.elevated(["diskutil", "unmount", self.root_mount_path], stdout=subprocess.PIPE).stdout.decode().strip().encode() + if self.root_mount_path: + logging.info("- Unmounting Root Volume (Don't worry if this fails)") + utilities.elevated(["diskutil", "unmount", self.root_mount_path], stdout=subprocess.PIPE).stdout.decode().strip().encode() + else: + logging.info("- Skipping Root Volume unmount") def _rebuild_dyld_shared_cache(self) -> None: