mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-23 03:20:16 +10:00
Avoid Installing OC to ESP if not requested
This commit is contained in:
@@ -1101,7 +1101,7 @@ to your USB drive.
|
|||||||
if installer.format_drive(disk) is True:
|
if installer.format_drive(disk) is True:
|
||||||
# Only install if OC is found
|
# Only install if OC is found
|
||||||
# Allows a user to create a macOS Installer without OCLP if desired
|
# Allows a user to create a macOS Installer without OCLP if desired
|
||||||
if self.constants.opencore_release_folder.exists():
|
if self.constants.opencore_release_folder.exists() and self.constants.walkthrough is True:
|
||||||
# ESP will always be the first partition when formatted by disk utility
|
# ESP will always be the first partition when formatted by disk utility
|
||||||
install.tui_disk_installation.install_opencore(self, f"disk{disk}", "1")
|
install.tui_disk_installation.install_opencore(self, f"disk{disk}", "1")
|
||||||
if installer.create_installer(installer_path, "OCLP-Installer") is True:
|
if installer.create_installer(installer_path, "OCLP-Installer") is True:
|
||||||
|
|||||||
Reference in New Issue
Block a user