Fix incorrectly stripping disk ID in recovery

This commit is contained in:
Mykola Grymalyuk
2021-05-19 11:01:58 -06:00
committed by GitHub
parent 9b7497946a
commit a6fbbc0c44
+1
View File
@@ -160,6 +160,7 @@ class PatchSysVolume:
self.root_mount_path = root_partition_info["DeviceIdentifier"] self.root_mount_path = root_partition_info["DeviceIdentifier"]
if self.root_mount_path.startswith("disk"): if self.root_mount_path.startswith("disk"):
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 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}") print(f"- Found Root Volume at: {self.root_mount_path}")
if Path(self.mount_extensions).exists(): if Path(self.mount_extensions).exists():