[ltp] Static <-> Modular kernel probs
Tino Keitel
linux-thinkpad@linux-thinkpad.org
Mon, 2 Dec 2002 16:42:03 +0100
On Mon, Dec 02, 2002 at 10:21:42 -0500, Scott Ehrlich wrote:
> Whenever I compile a kernel I always prefer a static to modular version to
> enhance security. But, there are times when I may opt to recompile as a
> modular kernel instead.
>
> Whenever I'd done so, though, I always get errors that the /etc.../modules
> directory doesn't exist. I would enable full loadable module support in
> the kernel, then perform a make modules;make modules install.
You don't want make modules install, you want make modules_install, as
in <http://www.tldp.org/HOWTO/Kernel-HOWTO-2.html#ss2.2>.
> Sometimes, if I need to change kernel versions, I'll do make modules;make
> modules install twice - once with the "old" kernel version, then, once
> rebooted with the new version in place, again.
>
> I can never get out of the module struggle unless I reinstall.
>
> Any help would be appreciated on how to successfully swap back and forth
> between static and modular kernels. I'm using Debian.
If you are using debian, all you have to do is
apt-get install kernel-package libc-dev gcc debianutils make \
libdb3-dev libncurses-dev fakeroot
go to your linux kernel source directory, do
make xconfig
and
fakeroot make-kpkg clean ; fakeroot make-kpkg kernel_image --revision mykernel.01
This will build a .deb in the parent directory that contains the kernel
and all modules that you can install with dpkg -i.
--
tino.keitel@innominate.com
dipl.-inf. Innominate Security Technologies AG
software engineer networking people
tel: +49.30.6392-3308 http://www.innominate.com/