Disabling init=1 ?
Is it possible to disable this 'feature' that lets anyone armed with a keyboard to run /bin/bash when the system starts instead of login in properly by interrupting the boot sequence ? Is this part of lilo or is it the kernel that's built like that? Looks like a major security flaw.
The system in question boots without prompting or using a lilo menu but there's still a way to interrupt the boot sequence and specifying to run /bin/bash.
Thanks for any suggestions.
Transferring boot sequence from syslinux to lilo
What I'm trying to do is to boot a PC using a USB stick and then offer to choice either to continue booting the USB stick or to boot the hard disk.
Both the USB stick and the hard disk are booting fine on their own. syslinux is used for the USB stick. lilo 22.214.171.124 is used to initialize the hard disk. Please note that the hard disk is initialized on a host machine and is seen as /dev/hdc when doing so. The following lilo command is then used:
lilo -r /mnt/disk -b /dev/hdc
With the following lilo.conf:
Then this hard disk is put into another PC as sole hard disk (i.e. hda). It boots fine on its own.
Now, using syslinux.cfg I can get lilo to output a 'L' without any error code, but that's as far it can get. Peter Anvin (of syslinux) has commented that what lilo needs is to trust DL and that perhaps there's an option for this.
I've browsed through the lilo documentation but couldn't find something pertaining to making it 'trust DL'. Perhaps it is expressed in a different way. Could you help with this ?