If the bootloader knows about a factory-reset or dev-mode button, use them to allow stopping the boot process, and to signal the factory-reset condition to infix.