Skip to content

Commit 15ad0c5

Browse files
committed
macos_installer_handler.py: Reference full diskutil path
Thanks @niklasravnsborg for the report!
1 parent 0e0b143 commit 15ad0c5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
- Removes unsupported Metal-based wallpaper (Macintosh Wallpaper)
1515
- Resolve firmware upload incompatibilities on pre-2012 Macs with 2012+ Airport cards
1616
- Thanks @ausdauersportler for the catch!
17+
- Resolve `diskutil` failing to be located in the installer creation process
18+
- Thanks @niklasravnsborg for the report!
1719
- Increment binaries:
1820
- PatcherSupportPkg 1.8.3 - release
1921

opencore_legacy_patcher/support/macos_installer_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def generate_installer_creation_script(self, tmp_location: str, installer_path:
135135

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

0 commit comments

Comments
 (0)