Instruction to create a bootable iso image of MacOS 10.12 Sierra installer on Mac

Instruction to create a bootable iso image of MacOS 10.12 Sierra installer on Mac
0

In this topic, we will show you step by step to make a a bootable iso image of MacOS 10.12 Sierra installer on Mac

DOWNLOAD
We now still is able to download Sierra from Apple Store: https://itunes.apple.com/us/app/macos-sierra/id1127487414
Without Apple store, download the MacOS 10.12 Sierra.app from here. Just make sure that after downloading, you make a copy of MacOS 10.12 Sierra.app into /Applications/ folder.

Creating a bootable MacOS 10.12 Sierra installer.iso
Thank github - julianxhokaxhiu for the blow bash script to create a Bootable ISO from macOS Sierra Install Image.

hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app

hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J

hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build

asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase

rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages

cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/

cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist

cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg

hdiutil detach /Volumes/install_app

hdiutil detach /Volumes/OS\ X\ Base\ System/

hdiutil convert /tmp/Sierra.cdr.dmg -format UDTO -o /tmp/Sierra.iso

mv /tmp/Sierra.iso.cdr ~/Desktop/Sierra.iso