It's already possible under lilo using lock
. I've tested it using RH8.
Add the following line to the general section of your lilo.conf:
This will record the lilo commandline
Activate the new configuration by running lilo and reboot.
When the lilo menu shows, go to the command line (under RH by pressing <ctrl>x). Typing ? will show the different labels as specified in lilo.conf (e.g. linux and windows). Type the name of the OS (read: label) that you want to boot (in the example linux or windows). Wait till booting has finished and reboot.
The usual lilo screen will not show and the system will immediately boot the last selection (so without the usual delay).
To select another OS, hold the <shift> key while the system reboots (just before the usual lilo menu should show); this might be a bit tricky. As a result the lilo menu shows up again; again press <ctrl>x and type the name of the required OS.
If you don't go to the lilo commandline, the 'normal' default OS will be booted after the usual delay. This also seems to clear the recorded commandline, so the next time that the system reboots, it agains shows the lilo menu.
Docs: man lilo.conf
- First check how to access the lilo commandline
- Check my info against your lilo version; things might be slightly different
- First check if it works booting into linux; if it does not work, you can still fix lilo.conf
- It's a good idea to have a linux bootflop or rescue disk available in case it does not work so you can boot into linux and fix lilo.conf again.
//edit: have to learn to type faster