On Sat, Feb 23, 2002 at 11:36:51AM -0800, Ken Moffat wrote:
> I have been using lilo, with my config file in my redhat7.1 install. I
> have been booting to redhat, modifying the lilo.conf there to access
> changes in my setup (adding other distros, etc) then running
> /sbin/lilo from there, making sure to mount all effected partitions,
> then rebooting to access other distros. My question is is this
> necessary? Can I have lilo.conf in some neutral location which I can
> access and modify from any other running distro, thereby eliminating
> the need to boot redhat, then reboot?
> 
> Thanks....

Sure.  You can use the same trick used to put LILO on a floppy.
Create a partition, set it up with just enough of a root partition to
keep LILO happy, then use the -r switch to LILO when you run it.

Here, for example, is the output of find(1) on a boot floppy that I use:
.
./lost+found
./IDENTIFY
./boot
./boot/boot.b
./boot/message
./boot/mesg2
./boot/map
./boot/mesg3
./boot/boot.0200
./dev
./dev/fd0
./dev/fd0H1440
./dev/ram
./dev/null
./dev/sdc1
./dev/sda3
./dev/hda5
./dev/hda8
./etc
./etc/lilo.conf
./vmlinuz

There has to be enough in /dev for LILO to figure out how to write
its stuff;  enough in /boot to support LILO, and an /etc to contain
lilo.conf

You would, in addition, need to have your kernels and initrd files
in this filesystem; my example has only one kernel and no initrd.
You have to be careful in lilo.conf, to refer to all files relative
to this filesystem, i.e. do NOT include the "/LILO" prefix in the
pathnames.

Suppose you've created this and mounted it as /LILO in all systems.
Then to install it you'd run 
    /sbin/lilo -r /LILO

And all would be well.  LILO will chroot(1) to /LILO, and run itself
there.

One last warning: LILO puts signatures in its support files.  You'll
have to be using the same version of LILO in all distros, or else
some of the distros won't be able to run LILO correctly.

++ kevin



-- 
Kevin O'Gorman  (805) 650-6274  mailto:[EMAIL PROTECTED]
Permanent e-mail forwarder:  mailto:Kevin.O'[EMAIL PROTECTED]
At school: mailto:[EMAIL PROTECTED]
Web: http://www.cs.ucsb.edu/~kogorman/index.html
Web: http://kosmanor.com/~kevin/index.html

"Life is short; eat dessert first!"
_______________________________________________
Linux-users mailing list - http://linux-sxs.org/mailman/listinfo/linux-users
Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.

Reply via email to