myspaghetti / macos-virtualbox

Push-button installer of macOS Catalina, Mojave, and High Sierra guests in Virtualbox on x86 CPUs for Windows, Linux, and macOS
GNU General Public License v2.0
13.46k stars 1.11k forks source link

Create macOS Big Sur installer in macOS RECOVERY ( without Full macOS or VM ) #543

Closed heinthanth closed 2 years ago

heinthanth commented 2 years ago

I've read the scripts and able to create macOS installer USB using asr, diskutils in recovery shell ( like the script use ).

But with macOS big sur, I only get InstallAssistant.pkg. How can I use it to create bootable USB installer in recovery shell.

( In real mac, we can just install the pkg and /Applications/Install*.app/Contents/Resouces/createinstallationmedia. But dunno how in recovery shell. )

Not an issue with the script. Just want to figure out and contribute.

myspaghetti commented 2 years ago

The recovery environment is not able to execute every executable that runs on macOS. From my limited experience, createinstallationmedia does not work on the recovery shell, but I haven't tried it with Big Sur. I'll give it a go as a possible shortcut for installing Big Sur and Monterey.

myspaghetti commented 2 years ago

I tried extracting InstallAssistant.pkg in the recovery environment but it didn't extract SharedSupport.dmg so obviously the installer wouldn't run, and I have a feeling that even if it did extract successfully it would have failed like previous versions. Still, I'm open to this method if it ever actually works.