Re-installing lilo from a Slackware boot CD
So you broke lilo. Well done.
Insert your Slackware install DVD or CD1 and boot with defaults.
Once booted:
mkdir /foo
mount /dev/sda1 /foo
mount --bind /proc /foo/proc
mount --bind /sys /foo/sys
mount --bind /dev /foo/dev
chroot /foo
vi /etc/lilo.conf
lilo
exit
reboot
mount /dev/sda1 /foo
mount --bind /proc /foo/proc
mount --bind /sys /foo/sys
mount --bind /dev /foo/dev
chroot /foo
vi /etc/lilo.conf
lilo
exit
reboot
where /dev/sda1 is your installed / partition. Adjust as necessary.

Vim fail
There’s only vi in the installer
@slava_dp
Very good point.. I shall modify accordingly.
In chroot, you are out of limitation of the installation CD and have all editors installed in the system at your disposal (unless /usr is mounted on a separate partition).
@mosk0bit
@slava_dp
An even better point! I knew there was a reason I used vim in the first place.
I will still leave the article as vi though since vim cannot be guaranteed to be part of the installed environment.
I had to type “chroot /foo”.
No “/” = no workee.
@lazenby
Fair point.. “chroot foo” assumes you were in “/” to start with (which often you are in this scenario).
I’ve added the explicit forwardslash.