Purple strip on screen then fades to black
Context: I am attempting to root the moto g xt1040 so I can install a cyanogenmod ROM on it.
I have unlocked the bootloader and dropped the CM ROM.zip file on the device.
I have also dropped the Update-SuperSU-v2.02.zip file on the phone.
Problem: When I run: >fastboot boot TWRP220.127.116.11-titan-motog-2014.img it works for a minute and then a purple stripe shows on the screen for a minute and then fades to black. If I restart it the stock version of Android loads. I am trying to get to the screen where I can update the SU to give root access. I downloaded CF-Auto-Root-peregrine-peregrineretgb-xt1039.zip and ran root-windows.bat but it doesn't seem to have worked although it reported successful.
There is a very similar issue here: //android.stackexchange.com/questions/112321/booting-into-twrp-fails?newreg=037b226a9f2f450e8ea21cee964277d4 - but it hasn't been solved.
I just made a lot of progress. Apparently before you flash recovery you need to transfer the file to the SD card. After I did that I ran the below:
C:\adb>fastboot flash recovery CWM-18.104.22.168-peregrine.img
I then booted into recovery mode and it worked. Now it should be simple except I somehow download a cyanogenmod that is for xt1034 instead of xt1040 so I'm off to correct that....
-Total Beginner with custom ROMs