Using two external field-effect transistors and a couple of resistors it is possible to have 1 or 2 buttons for a Power ON/OFF logic.
Now I have the following:
- After a power cycle the system will autoboot into Linux
- Pressing the Shutdown button or calling
haltwill enter halt mode
- Pressing the Power button (in halt mode only) will boot the system into Linux
So this is almost what I wanted to get.
Is it possible to configure the bootloader in a way that the system will not autoboot into Linux but entering halt mode? This way it would be explicitly required to power on using the Power button.