When making a Hackintosh or a HackBook, one of the things that you need to learn to do is how to create install media for macOS. If not, you will have to rely on someone else to make one for you with the bootloader baked in if you do not have access to Apple hardware.
If that is your only option, when setting up and in post-installation, do not sign into any online account. Instead, make the drive bootable and then restart into the Recovery and wipe the OS partition and reinstall macOS using the Internet recovery feature so that you get a clean version directly from Apple and when that is done, use the below invocations to create a malware-free USB for a local reinstall. Since Apple assigns SSL Certificates on the installers, you will need to use the release date fix to install.
Note: “–applicationpath” will be deprecated in macOS 10.14 and greater.
Create a Big Sur (Beta) USB Installer
sudo /Applications/Install\ macOS\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB /Applications/Install\ macOS\ Beta.app
Create a Catalina USB Installer
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB /Applications/Install\ macOS\ Catalina.app
Create a Mojave USB Installer
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB /Applications/Install\ macOS\ Mojave.app
Create a High Sierra USB Installer
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ macOS\ High\ Sierra.app
Create a Sierra USB Installer
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ macOS\ Sierra.app
Create an El Capitan USB Installer
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app
Create a Yosemite USB Installer
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ OS\ X\ Yosemite.app
Create a Mavericks USB Installer
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ OS\ X\ Mavericks.app
Last login: Fri Jun 21 21:44:33 on console
HackBook-Pro:~ admin$ sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/GixxerUSB –applicationpath /Applications/Install\ macOS\ Sierra.app
Password:
Ready to start.
To continue we need to erase the disk at /Volumes/GixxerUSB.
If you wish to continue type (Y) then press return: Yes
Erasing Disk: 0%… 10%… 20%… 30%…100%…
Copying installer files to disk…
Copy complete.
Making disk bootable…
Copying boot files…
Copy complete.
Done.
HackBook-Pro:~ admin$