I'm trying to do a clean install of macOS Mojave on my 2012 13" MacBook Pro using a bootable USB. I'm doing it on a new 1 TB SSD that I've installed after my last one died.
The problem I'm having is that ever time I run the installer, everything looks like it's working, but then towards the end of the installation, the computer restarts and ultimately returns to the macOS Utilities menu.
I've tried formatting the hard drive several times and have even tried installing OS X Mountain Lion via an Internet recovery.
I'm struggling to find a solution to this, so would really appreciate some help.