linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: mrproper@ximian.com, linux-kernel@vger.kernel.org
Subject: [patch] Re: make install problems
Date: Wed, 1 Oct 2003 03:26:11 -0500	[thread overview]
Message-ID: <200310010326.13187.rob@landley.net> (raw)
In-Reply-To: <1064927778.1575.0.camel@localhost.localdomain>

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)"


      parent reply	other threads:[~2003-10-01  8:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-30 13:16 make install problems Kevin Breit
2003-09-30 15:14 ` Randy.Dunlap
2003-09-30 15:29   ` Kevin Breit
2003-09-30 15:34     ` Randy.Dunlap
2003-09-30 16:18       ` Kevin Breit
2003-09-30 16:25         ` Randy.Dunlap
2003-10-01  8:26 ` Rob Landley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200310010326.13187.rob@landley.net \
    --to=rob@landley.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mrproper@ximian.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).