This isn't really a script. Just a four line listing of what I did to get my modules to install. From what I understand in the kernel makefile (and I don't really understand much), this is what it does.

First, I do a `make modules_install` to get /lib/modules set up with the symbolic links and the kernel directory in it. Then I do a couple of find commands to get the .ko files and their directory names. Then I make those directories in /lib/modules/2.6.14.3-grsec/kernel, and copy the .ko files there. Finally, I do a depmod to get the modules found by the kernel on reboot.

This has worked for me, and I doubt it's very proper. I don't have a mission critical production server I'm using it on, and I don't believe a mission critical production server would be using modules anyway. Is there some work being done towards a patch for that 'virtual memory exhausted' bug in make 3.80 for the next book? The CVS snapshot I grabbed and compiled seemed to have fixed that problem, but when I was looking for a solution to that problem through an 'official' patch, I didn't come up with anything.

cd /usr/src/linux-2.6.14.3

make modules_install

for F in `find . -name *.ko | cut -d . -f 2-` ; do mkdir -p /lib/modules/2.6.14.3-grsec/kernel`dirname $F` ; done

for F in `find . -name *.ko | cut -d . -f 2- | cut -d "/" -f 2-` ; do cp $F /lib/modules/2.6.14.3-grsec/kernel/$F ; done

depmod -ae -F System.map 2.6.14.3-grsec

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to