Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

watkipet

macrumors member
Original poster
Aug 11, 2018
42
22
I've installed OCLP on my cMP 5,1 and botched it a little. I get inverted colors on the login screen, the UI is extremely slow, and I can't log in (the login process just crashes and sends me back to the login screen).

I can SSH in though. I can even download and install a new version (1.5.0) of OCLP:

sudo installer -pkg OpenCore-Patcher.pkg -target /

Then I can build OCLP:

/Library/Application\ Support/Dortania/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher --build

But how do I install what I built from the command line? I can't seem to find any instruction or anyone using OpenCore-Patcher from the command line.
 

haralds

macrumors 68030
Jan 3, 2014
2,990
1,252
Silicon Valley, CA
I have not experimented with the actual installation of the EFI drivers. But once in a while get crashing on on unpatched root after updating and use ssh to get in. Here is the bash script I use to handle this.

Code:
#!/bin/bash
# oclp - make OpenCore CLI easier
while [[ "$#" -gt 0 ]]; do
    case $1 in
        -h|--help)
        echo "oclp"
        echo "    -p  -- patch    apply root patch to system volume"
        echo "    -u  --unpatch    remove toot patch from system volume"
        echo "    Other arguments    passed to OpenCore-Patcher directly"
        echo ""
        /Library/Application\ Support/Dortania/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher \
            --help
        ;;
        -p|--patch)
        echo "Apply RootPatch"
        sudo /Library/Application\ Support/Dortania/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher \
            --patch_sys_vol
        ;;
        -u|--unpatch)
        echo "Remove RootPatch"
        sudo /Library/Application\ Support/Dortania/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher \
            --unpatch_sys_vol
        ;;
        *)
        echo "Direct OpenCore-Patcher invocation"
        /Library/Application\ Support/Dortania/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher \
            "$@"""
        ;;
    esac
    shift
done
 
  • Like
Reactions: Macschrauber
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.