install.py: Avoid drive icon confusion with OCLP

This commit is contained in:
Mykola Grymalyuk
2022-10-26 06:56:33 -06:00
parent 4d7f7b9c28
commit 2db8cb3a85
3 changed files with 17 additions and 21 deletions

View File

@@ -79,7 +79,7 @@ The following models lost Wifi support in macOS Monterey due to their legacy Wir
* MacBookPro6,x is exempt * MacBookPro6,x is exempt
* MacPro5,1 and older * MacPro5,1 and older
Note: BCM943224, BCM94331, BCM94360 and BCM943602 are still fully support by OpenCore Legacy Patcher Note: BCM943224, BCM94331, BCM94360 and BCM943602 are still fully supported by OpenCore Legacy Patcher
::: :::
@@ -96,7 +96,7 @@ The following models lost Bluetooth support in macOS Monterey due to their legac
* MacBookPro8,1 and older * MacBookPro8,1 and older
* MacPro5,1 and older * MacPro5,1 and older
Note: Native BRCM20702 and BRCM20703 are still fully support by OpenCore Legacy Patcher Note: Native BRCM20702 and BRCM20703 are still fully supported by OpenCore Legacy Patcher
::: details Dropped Firmwares ::: details Dropped Firmwares

View File

@@ -127,7 +127,7 @@ The following machines shipped stock with these cards:
::: :::
Currently BCM943224, BCM94331, BCM94360 and BCM943602 are still fully support by OpenCore Legacy Patcher. Consider upgrading to these cards if possible. Currently BCM943224, BCM94331, BCM94360 and BCM943602 are still fully supported by OpenCore Legacy Patcher. Consider upgrading to these cards if possible.
### USB 1.1 (OHCI/UHCI) Support ### USB 1.1 (OHCI/UHCI) Support

View File

@@ -229,22 +229,18 @@ Please build OpenCore first!"""
Path(mount_path / Path("EFI/BOOT")).mkdir() Path(mount_path / Path("EFI/BOOT")).mkdir()
shutil.move(mount_path / Path("System/Library/CoreServices/boot.efi"), mount_path / Path("EFI/BOOT/BOOTx64.efi")) shutil.move(mount_path / Path("System/Library/CoreServices/boot.efi"), mount_path / Path("EFI/BOOT/BOOTx64.efi"))
shutil.rmtree(mount_path / Path("System"), onerror=rmtree_handler) shutil.rmtree(mount_path / Path("System"), onerror=rmtree_handler)
# Due to how OpenCore processes on-volume icons, Windows may appear as OC's icon if determine_sd_card(sd_type) is True:
if (mount_path / Path("EFI/Microsoft")).exists(): print("- Adding SD Card icon")
print("- Windows Boot Loader detected, skipping volume icon") shutil.copy(self.constants.icon_path_sd, mount_path)
elif ssd_type is True:
print("- Adding SSD icon")
shutil.copy(self.constants.icon_path_ssd, mount_path)
elif disk_type == "USB":
print("- Adding External USB Drive icon")
shutil.copy(self.constants.icon_path_external, mount_path)
else: else:
if determine_sd_card(sd_type) is True: print("- Adding Internal Drive icon")
print("- Adding SD Card icon") shutil.copy(self.constants.icon_path_internal, mount_path)
shutil.copy(self.constants.icon_path_sd, mount_path)
elif ssd_type is True:
print("- Adding SSD icon")
shutil.copy(self.constants.icon_path_ssd, mount_path)
elif disk_type == "USB":
print("- Adding External USB Drive icon")
shutil.copy(self.constants.icon_path_external, mount_path)
else:
print("- Adding Internal Drive icon")
shutil.copy(self.constants.icon_path_internal, mount_path)
print("- Cleaning install location") print("- Cleaning install location")
if not self.constants.recovery_status: if not self.constants.recovery_status: