Sometimes I want to do something (for example, playing a simple text-mode game) while the system is booting up. This is especially useful when lengthy reiserfs transaction replays are happening.
Current hacky way of doing it is:
- Put the program on initramfs.
- Before running
/sbin/init, "openvt 2 /my/program".
- Turn off messages from kernel (sysrq 0)
/dev/null(to prevent boot messages).
The problems are:
- There are still some messages interfering with program output.
- I can't see boot messages by switching to that virtual terminal back.
- After finishing the boot sequence,
/dev/tty2ends up being attached both to getty and my program.
How to do it properly without of running graphical splashes?
The system is Linux Debian Squeeze, no dependency based sysv scripts.