[Moto G5 Questions & Answers] braganetx:
I ran the commands as suggested, but even so it does not enter the system, I notice that it gives a slight wink on the screen but does not enter the system it enters the recovery menu.

$ fastboot oem fb_mode_set
...
OKAY [ 0.012s]
finished. total time: 0.012s
$ fastboot flash partition gpt.bin
target reported max download size of 535822336 bytes
sending 'partition' (45 KB)...
OKAY [ 0.034s]
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.099s]
finished. total time: 0.133s
$ fastboot flash bootloader bootloader.img
target reported max download size of 535822336 bytes
sending 'bootloader' (5179 KB)...
OKAY [ 0.215s]
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.575s]
finished. total time: 0.790s
$ fastboot flash logo logo.bin
target reported max download size of 535822336 bytes
sending 'logo' (2242 KB)...
OKAY [ 0.104s]
writing 'logo'...
OKAY [ 0.119s]
finished. total time: 0.223s
$ fastboot flash boot boot.img
target reported max download size of 535822336 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.655s]
writing 'boot'...
OKAY [ 0.446s]
finished. total time: 1.102s
$ fastboot flash recovery recovery.img
target reported max download size of 535822336 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.689s]
writing 'recovery'...
OKAY [ 0.454s]
finished. total time: 1.143s
$ fastboot flash dsp adspso.bin
target reported max download size of 535822336 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.597s]
writing 'dsp'...
OKAY [ 0.293s]
finished. total time: 0.890s
$ fastboot flash oem oem.img
target reported max download size of 535822336 bytes
sending 'oem' (148900 KB)...
OKAY [ 5.711s]
writing 'oem'...
OKAY [ 7.667s]
finished. total time: 13.378s
$ fastboot flash system system.img_sparsechunk.0
target reported max download size of 535822336 bytes
sending 'system' (258344 KB)...
OKAY [ 9.917s]
writing 'system'...
OKAY [ 5.930s]
finished. total time: 15.847s
$ fastboot flash system system.img_sparsechunk.1
target reported max download size of 535822336 bytes
sending 'system' (256570 KB)...
OKAY [ 9.641s]
writing 'system'...
OKAY [ 5.534s]
finished. total time: 15.175s
$ fastboot flash system system.img_sparsechunk.2
target reported max download size of 535822336 bytes
sending 'system' (246510 KB)...
OKAY [ 10.827s]
writing 'system'...
OKAY [ 6.586s]
finished. total time: 17.413s
$ fastboot flash system system.img_sparsechunk.3
target reported max download size of 535822336 bytes
sending 'system' (262141 KB)...
OKAY [ 11.385s]
writing 'system'...
OKAY [ 7.547s]
finished. total time: 18.932s
$ fastboot flash system system.img_sparsechunk.4
target reported max download size of 535822336 bytes
sending 'system' (261322 KB)...
OKAY [ 11.734s]
writing 'system'...
OKAY [ 11.231s]
finished. total time: 22.965s
$ fastboot flash system system.img_sparsechunk.5
target reported max download size of 535822336 bytes
sending 'system' (262141 KB)...
OKAY [ 11.661s]
writing 'system'...
OKAY [ 5.534s]
finished. total time: 17.196s
$ fastboot flash system system.img_sparsechunk.6
target reported max download size of 535822336 bytes
sending 'system' (262143 KB)...
OKAY [ 11.027s]
writing 'system'...
OKAY [ 6.719s]
finished. total time: 17.746s
$ fastboot flash system system.img_sparsechunk.7
target reported max download size of 535822336 bytes
sending 'system' (256817 KB)...
OKAY [ 10.969s]
writing 'system'...
OKAY [ 6.857s]
finished. total time: 17.826s
$ fastboot flash system system.img_sparsechunk.8
target reported max download size of 535822336 bytes
sending 'system' (237909 KB)...
OKAY [ 10.007s]
writing 'system'...
OKAY [ 7.431s]
finished. total time: 17.438s
$ fastboot flash modem NON-HLOS.bin
target reported max download size of 535822336 bytes
sending 'modem' (66358 KB)...
OKAY [ 2.825s]
writing 'modem'...
OKAY [ 1.060s]
finished. total time: 3.885s
$ fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.050s]
finished. total time: 0.050s
$ fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.064s]
finished. total time: 0.064s
$ fastboot flash fsg fsg.mbn
target reported max download size of 535822336 bytes
sending 'fsg' (2956 KB)...
OKAY [ 0.153s]
writing 'fsg'...
OKAY [ 0.132s]
finished. total time: 0.285s
$ fastboot erase cache
erasing 'cache'...
OKAY [ 0.024s]
finished. total time: 0.024s
$ fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.171s]
finished. total time: 0.171s
$ fastboot oem fb_mode_clear
...
OKAY [ 0.014s]
finished. total time: 0.014s
$ fastboot reboot
rebooting...

finished. total time: 0.166s
$