Posted by: Anonymous Coward
on April 15, 2006 02:19 PM
If you want to have the option of different kernels for each Linux install, it is relatively easy to achieve using LILO without having to chainload. You simply have to mount up all of the partitions storing the kernels, and then in the LILO config, point to where those kernels are mounted on your current system.
Example: Say you have another Linux distro, on<nobr> <wbr></nobr>/dev/hda3. Mount it up to<nobr> <wbr></nobr>/mnt/hda3, or something. Then in your LILO config, point to the kernel images, relative to your _current_ root directory, _not_ relative to where your root directory would be if you were loading up that second Linux distro. So I would point to something like<nobr> <wbr></nobr>/mnt/hda3/boot/vmlinuz-2.4,<nobr> <wbr></nobr>/mnt/hda3/boot/vmlinuz-2.6 NOT<nobr> <wbr></nobr>/boot/vmlinuz-2.4.
LILO takes care of it 100%. There is no chrooting or chainloading required, because when you run the lilo command, it changes your MBR to point to the physical location of the kernel on your hard drive, and not to a potentially variable file path.
P.S. LILO can be plenty graphical if you wish. I've lost the link, but I've seen a page that describes even animated LILO bootscreens.
Re:Don't Chainload Because!
Posted by: Anonymous Coward on April 15, 2006 02:19 PMExample: Say you have another Linux distro, on<nobr> <wbr></nobr>/dev/hda3. Mount it up to<nobr> <wbr></nobr>/mnt/hda3, or something. Then in your LILO config, point to the kernel images, relative to your _current_ root directory, _not_ relative to where your root directory would be if you were loading up that second Linux distro. So I would point to something like<nobr> <wbr></nobr>/mnt/hda3/boot/vmlinuz-2.4,<nobr> <wbr></nobr>/mnt/hda3/boot/vmlinuz-2.6 NOT<nobr> <wbr></nobr>/boot/vmlinuz-2.4.
LILO takes care of it 100%. There is no chrooting or chainloading required, because when you run the lilo command, it changes your MBR to point to the physical location of the kernel on your hard drive, and not to a potentially variable file path.
P.S. LILO can be plenty graphical if you wish. I've lost the link, but I've seen a page that describes even animated LILO bootscreens.
#