The following is predicated on the assumption that I know what
you are asking for, which could be false.
It almost (*) sounds like you've built gentoo in some directory
under your current system (say /gentoo), and would like to use
that as your root to the filesystem.
*: Almost, except that you say you want /mnt/gentoo, which is
usually used for mounting removable media or "temporary"
partitions. If it's the latter, then you can probably use the
standard lilo.conf kernel image block:
Code:
image = /boot/vmlinuz_gentoo
root = /dev/hda5
label = Gentoo
read-only
According to the latest documentation I could find (2001,
/usr/doc/Linux-HOWTOs/BootPrompt-HOWTO on Slack 8.1),
there is no rootfs= boot parameter to the kernel. The root= option
for the kernel sets the root filesystem that the kernel uses while
booting (see Bootdisk-HOWTO for some info on how to mess
with this). This is not necessarily the final root filesystem to use
when the system is loaded and ready for users.
I can't think of a way (off hand) of using LILO to specify a
partition by its label (i.e. like the /etc/fstab syntax) rather than its
device name.
I believe that, unless you do funky chroot stuff, you need to
have the root of the filesystem be a partition, not a subdir of the
root dir on the partition. (This sentence doesn't really make sense
to me right now, maybe I'll edit it later.)