[Moto G5 Guides, News, & Discussion] VHNZERO:
Downloaded that ROM and flashed with the same commands, confirmed working, now my device is booting without the sdcard, i booted it to fastboot with sdcard and removed it before flashing the ROM, the phone is working normally.

Here's the cmd log:

c:\platform-tools>fastboot oem fb_mode_set

OKAY [ 0.004s]

Finished. Total time: 0.005s

c:\platform-tools>fastboot flash partition gpt.bin

(bootloader) has-slot:partition: not found

Sending 'partition' (45 KB) OKAY [ 0.005s]

Writing 'partition' (bootloader) Validating 'gpt.default.xml'

(bootloader) Committing 'gpt.default.xml'

(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'

(bootloader) Flashing primary GPT image...

(bootloader) Flashing backup GPT image...

OKAY [ 0.163s]

Finished. Total time: 0.357s

c:\platform-tools>fastboot flash bootloader bootloader.img

(bootloader) has-slot:bootloader: not found

Sending 'bootloader' (5179 KB) OKAY [ 0.174s]

Writing 'bootloader' (bootloader) Validating 'bootloader.default.xml'

(bootloader) Committing 'bootloader.default.xml'

(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'

(bootloader) - flashing 'rpm.mbn' to 'rpm'

(bootloader) - flashing 'tz.mbn' to 'tz'

(bootloader) - flashing 'devcfg.mbn' to 'devcfg'

(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'

(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'

(bootloader) - flashing 'keymaster.mbn' to 'keymaster'

(bootloader) - flashing 'prov.mbn' to 'prov'

(bootloader) - flashing 'sbl1.mbn' to 'sbl1'

OKAY [ 0.720s]

Finished. Total time: 1.083s

c:\platform-tools>fastboot flash logo logo.bin

(bootloader) has-slot:logo: not found

Sending 'logo' (2242 KB) OKAY [ 0.078s]

Writing 'logo' OKAY [ 0.143s]

Finished. Total time: 0.409s

c:\platform-tools>fastboot flash boot boot.img

(bootloader) has-slot:boot: not found

Sending 'boot' (16384 KB) OKAY [ 0.547s]

Writing 'boot' (bootloader) Image signed with key bad key

OKAY [ 0.458s]

Finished. Total time: 1.193s

c:\platform-tools>fastboot flash recovery recovery.img

(bootloader) has-slot:recovery: not found

Sending 'recovery' (16484 KB) OKAY [ 0.553s]

Writing 'recovery' (bootloader) Image signed with key bad key

OKAY [ 0.492s]

Finished. Total time: 1.233s

c:\platform-tools>fastboot flash dsp adspso.bin

(bootloader) has-slot:dsp: not found

Sending 'dsp' (16384 KB) OKAY [ 0.547s]

Writing 'dsp' OKAY [ 0.312s]

Finished. Total time: 1.046s

c:\platform-tools>fastboot flash oem oem.img

(bootloader) has-slot:oem: not found

Sending 'oem' (188482 KB) OKAY [ 6.106s]

Writing 'oem' OKAY [ 2.618s]

Finished. Total time: 8.910s

c:\platform-tools>fastboot flash system system.img_sparsechunk.0

(bootloader) has-slot:system: not found

Sending 'system' (524112 KB) OKAY [ 16.488s]

Writing 'system' OKAY [ 8.126s]

Finished. Total time: 24.801s

c:\platform-tools>fastboot flash system system.img_sparsechunk.1

(bootloader) has-slot:system: not found

Sending 'system' (524219 KB) OKAY [ 16.595s]

Writing 'system' OKAY [ 7.450s]

Finished. Total time: 24.232s

c:\platform-tools>fastboot flash system system.img_sparsechunk.2

(bootloader) has-slot:system: not found

Sending 'system' (518018 KB) OKAY [ 16.349s]

Writing 'system' OKAY [ 7.490s]

Finished. Total time: 24.026s

c:\platform-tools>fastboot flash system system.img_sparsechunk.3

(bootloader) has-slot:system: not found

Sending 'system' (511237 KB) OKAY [ 16.140s]

Writing 'system' OKAY [ 7.200s]

Finished. Total time: 23.528s

c:\platform-tools>fastboot flash system system.img_sparsechunk.4

(bootloader) has-slot:system: not found

Sending 'system' (432179 KB) OKAY [ 13.601s]

Writing 'system' OKAY [ 6.545s]

Finished. Total time: 20.332s

c:\platform-tools>fastboot flash modem NON-HLOS.bin

(bootloader) has-slot:modem: not found

Sending 'modem' (65236 KB) OKAY [ 2.181s]

Writing 'modem' OKAY [ 1.081s]

Finished. Total time: 3.449s

c:\platform-tools>fastboot erase modemst1

(bootloader) has-slot:modemst1: not found

Erasing 'modemst1' OKAY [ 0.042s]

Finished. Total time: 0.234s

c:\platform-tools>fastboot erase modemst2

(bootloader) has-slot:modemst2: not found

Erasing 'modemst2' OKAY [ 0.043s]

Finished. Total time: 0.235s

c:\platform-tools>fastboot flash fsg fsg.mbn

(bootloader) has-slot:fsg: not found

Sending 'fsg' (2592 KB) OKAY [ 0.089s]

Writing 'fsg' OKAY [ 0.142s]

Finished. Total time: 0.418s

c:\platform-tools>fastboot erase cache

(bootloader) has-slot:cache: not found

Erasing 'cache' OKAY [ 0.017s]

Finished. Total time: 0.208s

c:\platform-tools>fastboot erase userdata

(bootloader) has-slot:userdata: not found

Erasing 'userdata' OKAY [ 0.166s]

Finished. Total time: 0.358s

c:\platform-tools>fastboot erase customize

(bootloader) has-slot:customize: not found

Erasing 'customize' (bootloader) Permission denied

FAILED (remote failure)

Finished. Total time: 0.197s

c:\platform-tools>fastboot erase clogo

(bootloader) has-slot:clogo: not found

Erasing 'clogo' (bootloader) Permission denied

FAILED (remote failure)

Finished. Total time: 0.194s

c:\platform-tools>fastboot oem fb_mode_clear

OKAY [ 0.005s]

Finished. Total time: 0.005s

c:\platform-tools>fastboot reboot

Rebooting

Finished. Total time: 0.007s

What are the commands if i want to lock bootloader in the flashing process?