Failsafe Mode to run scripts automatically

Hi everyone,

I had the same problem with link, "Failed to execute Please press Enter to activate this console" for unknown reasons, I want to enter failsafe mode to automatically execute scripts, such as "firstboot -y && reboot", how can I do it?