From a6fbbc0c443461a8d87d28eb14270163c47d86bd Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Wed, 19 May 2021 11:01:58 -0600 Subject: [PATCH] Fix incorrectly stripping disk ID in recovery --- Resources/SysPatch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index a713c3c7b..6952a1111 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -160,7 +160,8 @@ class PatchSysVolume: self.root_mount_path = root_partition_info["DeviceIdentifier"] if self.root_mount_path.startswith("disk"): - self.root_mount_path = self.root_mount_path[:-2] if self.root_mount_path.count("s") > 1 else self.root_mount_path + if self.constants.recovery_status is False: + self.root_mount_path = self.root_mount_path[:-2] if self.root_mount_path.count("s") > 1 else self.root_mount_path print(f"- Found Root Volume at: {self.root_mount_path}") if Path(self.mount_extensions).exists(): print("- Root Volume is already mounted")