- Preparation; you need
- macOS. Note: Windows or Linux does not work. They creates
only offline install media.
- USB stick >16GB.
- Linux; If you have a linux, then it will be useful for your task.
- Download Install_macOS_12.6-21G115.dmg (the name depends on your
target OS.)
Do this on your macOS in a terminal.
$ mkdir -p ~/macOS-installer
$ cd ~/macOS-installer
$ curl
https://raw.githubusercontent.com/munki/macadmin-scripts/main/installinstallmacos.py
> installinstallmacos.py
$ sudo python installinstallmacos.py
Choose the number associated your designated OS version.
Note python should be python3 in some case.
Note you need to run below command; pip might be pip3 in some
case.
$ pip3 xattr
- (on Linux) Prepare your media
It may destroy your data on the USB media. Be careful and make a back!
- make your media GPT from MBR(Master Boot Recorder), if it is not GPT yet.
$ sudo gdisk /dev/sdb <-- sdb depends.
just type w, and then Y.

just type w, and then Y.

Now you confirm it is gpt.
- (on Linux) make a proper partition table
$ gparted
make two partitions;
- FAT 700MB. Label: EFI. Flag: Boot, EPS.
- HFS+ 15300MB. Label: INSTALL1206.
Note: FAT32 is also fine, because it will be re-formated by installer.

Now you confirm it is gpt.
- (Back on macOS) create an install media.
- open Install_macOS_12.6-21G115.dmg with mounter.
It will be mounted as /Volume/Install_macOS_12.6-21G115/
- Run the commnad
$ sudo /Volumes/Install_macOS_Monterey/Install_macOS_Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/INSTALL1206

createinstallmedia command.
- Copy all OC files to /EFI on EFI partition on the media.
The necessary files depends on your system.
See Dartania's OpenCore guide.
Now you have an offline install media.