Nexus 5, I'm getting remote: flash write failure while trying to fix a bootloop
The flash-all.sh script does not take into consideration that your bootloader is locked after each restart.

I opened the shell script and executed each command one by one, re-unlocking with the following after each command:

fastboot oem unlock


I flashed each image with no errors, but it did not seem to write to memory regardless.