Skip to content

Latest commit

 

History

History
54 lines (50 loc) · 3.13 KB

Create macOS Mojave 10.14 iso using script.md

File metadata and controls

54 lines (50 loc) · 3.13 KB

make sure the install app ready under /Applications

when download macOS Mojave from Apple Store, it always download smaller installation app around 14MB, there are few ways to download full package before building up iso image.

1) download full package using smaller installation app

you can click /Applications/Install macOS Mojave.app to start installation, it will download full package to /Applications/macOS \Install \Data, quit or abort before real installation; then move files under /Applications/macOS \Install \Data to /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport/ .

2) download full package using

download and install http://dosdude1.com/mojave/, it used to build usb installer disk but also it has feature to download full package, you will find from menu Tools/Download macOS Mojave, place to folder like: ~/Downloads/Install macOS Mojave.app.

download script to home folder

oldhorses-Mac:~ oldhorse$ curl https://raw.githubusercontent.com/robertluwang/macnotes/master/macos_mojave_iso.sh -O 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   541  100   541    0     0    686      0 --:--:-- --:--:-- --:--:--   686

run script to build up iso

oldhorses-Mac:~ oldhorse$ sh -x ./macos_mojave_iso.sh 
+ hdiutil create -o /tmp/Mojave.cdr -size 7000m -layout SPUD -fs HFS+J
.................................................................................................................................................................
created: /tmp/Mojave.cdr.dmg
+ hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build
/dev/disk2              Apple_partition_scheme          
/dev/disk2s1            Apple_partition_map             
/dev/disk2s2            Apple_HFS                       /Volumes/install_build
+ sudo '/Applications/Install macOS Mojave.app/Contents/Resources/createinstallmedia' --volume /Volumes/install_build
Password:
Ready to start.
To continue we need to erase the volume at /Volumes/install_build.
If you wish to continue type (Y) then press return: y
Erasing disk: 0%... 10%... 20%... 30%... 100%
Copying to disk: 0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 
Making disk bootable...
Copying boot files...
Install media now available at "/Volumes/Install macOS Mojave"
+ mv /tmp/Mojave.cdr.dmg /Users/oldhorse/Desktop/InstallSystem.dmg
+ hdiutil detach '/Volumes/Install macOS Mojave'
"disk2" unmounted.
"disk2" ejected.
+ hdiutil convert /Users/oldhorse/Desktop/InstallSystem.dmg -format UDTO -o /Users/oldhorse/Desktop/Mojave.iso
Reading Driver Descriptor Map (DDM : 0)…
Reading Apple (Apple_partition_map : 1)…
Reading  (Apple_Free : 2)…
Reading disk image (Apple_HFS : 3)…
..............................................................................................................................................................
Elapsed Time:  2m 42.605s
Speed: 43.0Mbytes/sec
Savings: 0.0%
created: /Users/oldhorse/Desktop/Mojave.iso.cdr
+ mv ~/Desktop/Mojave.iso.cdr ~/Desktop/Mojave.iso
+ rm /Users/oldhorse/Desktop/InstallSystem.dmg