Skip to content

Commit

Permalink
macos_installer_handler.py: Reference full diskutil path
Browse files Browse the repository at this point in the history
Thanks @niklasravnsborg for the report!
  • Loading branch information
khronokernel committed Sep 27, 2024
1 parent 0e0b143 commit 15ad0c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
- Removes unsupported Metal-based wallpaper (Macintosh Wallpaper)
- Resolve firmware upload incompatibilities on pre-2012 Macs with 2012+ Airport cards
- Thanks @ausdauersportler for the catch!
- Resolve `diskutil` failing to be located in the installer creation process
- Thanks @niklasravnsborg for the report!
- Increment binaries:
- PatcherSupportPkg 1.8.3 - release

Expand Down
2 changes: 1 addition & 1 deletion opencore_legacy_patcher/support/macos_installer_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def generate_installer_creation_script(self, tmp_location: str, installer_path:

with script_location.open("w") as script:
script.write(f'''#!/bin/bash
erase_disk='diskutil eraseDisk HFS+ OCLP-Installer {disk}'
erase_disk='/usr/sbin/diskutil eraseDisk HFS+ OCLP-Installer {disk}'
if $erase_disk; then
"{createinstallmedia_path}" --volume /Volumes/OCLP-Installer --nointeraction{additional_args}
fi
Expand Down

0 comments on commit 15ad0c5

Please sign in to comment.