[patch] Re: make install problems

From: Rob Landley
Date: Wed Oct 01 2003 - 03:30:04 EST


On Tuesday 30 September 2003 08:16, Kevin Breit wrote:
> Hey,
> I setup a test6 kernel without module support. I did a make install
> and got:
>
> Kernel: arch/i386/boot/bzImage is ready
> sh /usr/src/linux-2.6.0-test6/arch/i386/boot/install.sh 2.6.0-test6
> arch/i386/boot/bzImage System.map ""
> /lib/modules/2.6.0-test6 is not a directory.
> mkinitrd failed
>
> How can I fix this?

Make modules_install before make install.

Here's a patch to do that automatically for i386 (untested).

The problem is that Red Hat 9's kernel install script tries to make an
initrd, which includes the modules directory, and barfs if it isn't there...

--- linux-old/Makefile 2003-10-01 02:52:49.000000000 -0500
+++ linux-2.6.0-test6/Makefile 2003-10-01 03:03:09.859448696 -0500
@@ -708,10 +708,7 @@
modules modules_install: FORCE
@echo
@echo "The present kernel configuration has modules disabled."
- @echo "Type 'make config' and enable loadable module support."
- @echo "Then build a kernel with module support enabled."
- @echo
- @exit 1
+ mkdir -p $(MODLIB) # Needed by some install scripts.

endif # CONFIG_MODULES

--- linux-old/arch/i386/boot/Makefile 2003-10-01 02:52:40.000000000 -0500
+++ linux-2.6.0-test6/arch/i386/boot/Makefile 2003-10-01 02:54:49.000000000 -0500
@@ -98,5 +98,5 @@
cp System.map $(INSTALL_PATH)/
if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi

-install: $(BOOTIMAGE)
+install: $(BOOTIMAGE) modules_install
sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/