Skip to content

Instantly share code, notes, and snippets.

@reteps
Last active October 1, 2022 07:14
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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
@elibekel
Copy link

Nice :)

@tvhung83
Copy link

tvhung83 commented Jan 20, 2019

I keep having this error, any idea? Thanks in advance!
img_20190120_162428
UPDATE: I've verified md5 checksum, it's matched with your file:

❯ md5 /Volumes/Install\ macOS\ Mojave/System/Library/PrelinkedKernels/prelinkedkernel
MD5 (/Volumes/Install macOS Mojave/System/Library/PrelinkedKernels/prelinkedkernel) = 16d5337eabb2edcce15e44bf013d7ebe

@reteps
Copy link
Author

reteps commented Jan 21, 2019

@TVHung try keeping the .test boot flag and making sure that you have a file prelinked.test in the original location.

@DJEnz97
Copy link

DJEnz97 commented Feb 5, 2019

My install keeps crashing, right before it gets to the first install part of the macOS gui part. Any help?

@tvhung83
Copy link

Sorry for late update, I think new comers (who install macOS on AMD for the first time like me) won't know that they need to keep both:

  • kcsuffix=test
  • prelinkedkernel.test

Btw, I've successfully installed on Ryzen 2200G, following this guide: https://forum.amd-osx.com/viewtopic.php?f=24&t=5902
Even though Shaneee mentioned that the kernel should work only on 10.14.1, but I'm using it on 10.14.3 just fine.

@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