/boot partition and modules/kernels
Matthew Carpenter
matt
Mon May 17 11:34:02 PDT 2004
So I'm not going nuts. You do end up copying /lib/modules to every root
partition. Ok. I'm set (this is what I ended up doing anyway). Thanks
for the idea. Somehow, although knowledge would suggest that this was
possible, taboo of crossing RPM distro boundaries kept me even from
considering it. I had installed SuSE 8.0, which is a decent distro...
just not for me. I have been working on learning FreeSWAN (which is
compiled in SuSE's Kernel but not COL's) and I wanted to move back to COL.
So this is providing me the best of both worlds... COL Distro, with
SuSE's Kernel (which has the pretty VC screens if booting with the default
SuSE vga= setting) :)
This was also a learning experience for me since I didn't realize that
LILO's accessing the kernel image is not as straighforward as one might
think... in a good way.
On Thu, 27 Jun 2002 07:15:24 -0500
"David A. Bandel" <david at pananix.com> wrote:
> On Wed, 26 Jun 2002 23:17:16 -0400
> begin Matthew Carpenter <matt at e-i-s.cc> spewed forth:
>
<SNIP>
>
> no links.
>
> OK, here's what I do:
>
> /boot contains:
> kernel-x.x.x (usually called bzImage-2.4.x-xfs-1.1 or some such)
> System.map-x.x.x (same extension as kernel)
> /modules
>
> /boot is not mounted by any distro, if/when I need to alter it, I mount
> it, work with it, umount it.
>
> my lilo.conf contains various images, such as:
> image = /boot/bzImage-2.4.18-xfs-1.1
> label = foo
> root = /dev/hda2
> read-only
>
> image = /boot/bzImage-2.4.18-xfs-1.1
> label = bar
> root = /dev/hda3
> read-only
>
> I build the kernel on one partition (say /dev/hda2). After a complete
> install and test boot (usually via a boot disk w/ the kernel dd'd to
> it), change lilo.conf, run lilo, copy /lib/modules to /boot/modules,
> then mount/dev/hda3, cp -a /boot/modules to /lib/modules there. This
> copying is necessary because /boot is on /dev/hda1 which is never
> mounted,/lib/modules/... needs to be accessed early on in the boot
> process (and so must be on the root partition).
>
> Now I can boot 27 or more different root partitions (distros) using the
> same kernel and modules.
>
> That help?
>
> Ciao,
>
> David A. Bandel
> --
> Focus on the dream, not the competition.
> -- Nemesis Racing Team motto
> _______________________________________________
> Linux-users mailing list -
> http://linux-sxs.org/mailman/listinfo/linux-users
> Subscribe/Unsubscribe info, Archives,and Digests are located at the
> above URL.
More information about the Linux-users
mailing list