Restoring an oldish iMac 18,3 (mid-2017) that had been previously been running Windows 10 via Bootcamp for the last 8 years.
Some useful commands:
You can identify the serial number of the Mac from the recovery terminal (hold cmd+R while booting to get to recovery):
ioreg -rd1 -c IOPlatformExpertDevice | grep Serial
To get hold of the most up to date recovery/installer that the machine supports (Ventura).
brew install python3 qemu
git clone [email protected]:DrDonk/recoveryOS.git
python3 recovery-vmdk.py
Don't bother with converting the dmg to a vmdk or anything, just write the dmg to a USB:
sudo /usr/sbin/asr restore --source ventura.dmg --target /Volumes/UNTITLED --erase -noverify
Boot the USB and then to reinstate the Fusion drive setup, (before starting the install)
diskutil resetFusion
Then install 🚀