macos_installer_handler.py: Reference full diskutil path

Thanks @niklasravnsborg for the report!
This commit is contained in:
Mykola Grymalyuk
2024-09-27 11:26:43 -06:00
parent 0e0b1436b2
commit 15ad0c509e
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -135,7 +135,7 @@ class InstallerCreation():
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