Skip to content

Instantly share code, notes, and snippets.

@reteps
Last active October 1, 2022 07:14
Show Gist options
  • Save reteps/3792817622f7e1f909ad8e9e1fda879d to your computer and use it in GitHub Desktop.
Save reteps/3792817622f7e1f909ad8e9e1fda879d to your computer and use it in GitHub Desktop.

@retep 12/27/18

Links

Notes

  • "Use createinstallmedia to make the USB then and replace the prelinkedkernel. You'll need to replace the prelinkedkernel on the HDD/SSD after the first part of the install and modify a plist. Once installed replace the kernel on the HDD/SSD and rebuild the prelinkedkernel from the installer." - Shaneee

  • Same Kexts as High Sierra (Lilu, WhateverGreen, FakeSMC, USBInject, NullPower, etc)

  • 10.14.1 is stable, DO NOT use 10.14.2 (will boot, most apps won't work)

Changes

  1. On USB, skip .IABootFiles step
  2. Add kcsuffix=test to boot flags
  3. Make sure to also add these flags for debug: -v debug=0x100 keepsyms=1

For 2nd stage install

  1. add PK to /macOS\ Install\ Data/Locked\ Files/Boot\ Files/
  2. run this command w/ Volume Name: sed -i '' 's/auth-//g' /Volumes/VOLUME_NAME/macOS\ Install\ Data/Locked\ Files/Boot\ Files/com.apple.Boot.plist

Postinstall (Using Postinstall Files)

  • Copy kernel to /System/Library/Kernels
  • Copy IONetworkingFamily.kext to /System/Library/Extensions
sudo chmod -R 755 /System/Library/Extensions/IONetworkingFamily.kext
sudo chown -R root:wheel /System/Library/Extensions/IONetworkingFamily.kext
sudo rm -Rf /System/Library/PrelinkedKernels/prelinkedkernel
sudo kextcache -u /

Install Errors

  • Stuck on ++++++ - missing prelinked kernel. Run these commands:

    • rm -Rf /Volumes/VOLUME_NAME/System/Library/PrelinkedKernels/prelinkedkernel
    • cp /Volumes/USB_DRIVE_NAME/System/Library/PrelinkedKernels/prelinkedkernel /Volumes/VOLUME_NAME/System/Library/PrelinkedKernels/prelinkedkernel
  • If you get a restart that ends in Please go to panic.apple.com, make sure that this file is missing auth-:

    • /Volumes/VOLUME_NAME/macOS Install Data/Locked Files/Boot Files/com.apple.Boot.plist
    • If not, remove it
@tvhung83
Copy link

@DJEnz97

right before it gets to the first install part of the macOS gui part.

You need some specific error, I know it's hard to catch the error, but I guess it's something to do with GPU kexts, if you use Nvidia GPU, you can try to disable them via boot flag: nv_disable=1. More info: https://www.tonymacx86.com/threads/solved-cant-boot-without-nv_disable-1.229743/#post-1564398

@faz
Copy link

faz commented Mar 24, 2019

HI i'm getting an error on the 2nd part of the install, after adding the PK and amending the boot.plist. The error is that the installer states that it can't find installer resources. The only solution I've found (that is not working for me) is to remove all SATA drives apart from target drive...Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment