At 01:50 PM 01/24/2000 +0000, Jake Johnson wrote:

>         When Red Hat compiles thier kernel for you to have an smp and a
>regular kernel.  I was wondering how they can have their specifically
>named directory.  I don't wan't to move my current /lib/modules/2.2.12-20
>folder because I want it there just in case I need to revert back to using
>it.  (for safety backup reason)

I usually do the following:

1) Move the old modules to another directory.

2) run 'make modules_install'

3) Move the newly created modules to a new directory.

4) Create a soft link to the version of modules you want to use during boot-up:

# pwd
/lib/modules
# ln -s 2.2.12-20.new 2.2.12-20

***WARNING!***
You must remember to change the soft link *before* rebooting or you'll wind 
up with module dependency errors.  Not fatal *UNLESS* you need one of them 
to boot the system, like SCSI card drivers.  (Yet another reason to compile 
those SCSI card drivers, etc. in.)

I use a matching kernel/modules directory naming convention that looks like so:

kernel: vmlinuz-kernel-version.YYYY-MM-DD.REV.[smp]
modules: kernel-version.YYYY-MM-DD.REV.[smp]

YYYY = year
MM = month
DD = day
REV = revision # (yes, I've had to compile several kernels in one day to 
get things right)
smp = SMP kernel

So my boot & modules directories currently look like this:

# ls -l /boot/vmlinuz*
-rw-r--r--   1 root     root       459561 Oct  6 15:29 
vmlinuz-2.0.36-3.1999-10-06.1.smp
-rw-r--r--   1 root     root       459800 Oct 22 17:14 
vmlinuz-2.0.36-3.1999-10-22.1.smp
-rw-r--r--   1 root     root       465941 Oct 26 13:21 
vmlinuz-2.0.36-3.1999-10-26.1.smp

# ls -l /lib/modules
lrwxrwxrwx   1 root     root           25 Oct 29 20:43 2.0.36 -> 
2.0.36-3.1999-10-26.1.smp
drwxr-xr-x   7 root     root         1024 Oct  8 20:43 
2.0.36-3.1999-10-06.1.smp
drwxr-xr-x   7 root     root         1024 Oct 22 18:04 
2.0.36-3.1999-10-22.1.smp
drwxr-xr-x   7 root     root         1024 Oct 29 20:55 
2.0.36-3.1999-10-26.1.smp

This numbering scheme may or may not work for you.

-Eric


Eric Sisler
Library Computer Technician
Westminster Public Library
Westminster, CO, USA
[EMAIL PROTECTED]

Linux - don't fear the Penguin.
Want to know what we use Linux for?
Visit http://gromit.westminster.lib.co.us/linux


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to