From owner-freebsd-bugs Tue Apr 3 8:40:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 94D7937B71C for ; Tue, 3 Apr 2001 08:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f33Fe4x94227; Tue, 3 Apr 2001 08:40:04 -0700 (PDT) (envelope-from gnats) Date: Tue, 3 Apr 2001 08:40:04 -0700 (PDT) Message-Id: <200104031540.f33Fe4x94227@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: kern/26317: /modules not created by make installkernel Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/26317; it has been noted by GNATS. From: Peter Pentchev To: "T. William Wells" Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/26317: /modules not created by make installkernel Date: Tue, 3 Apr 2001 18:37:37 +0300 On Tue, Apr 03, 2001 at 11:23:08AM -0400, T. William Wells wrote: > > >Number: 26317 > >Category: kern > >Synopsis: /modules not created by make installkernel > >Originator: T. William Wells > >Release: FreeBSD 4.3-BETA i386 > >Organization: > >Environment: > System: FreeBSD twwells.com 4.3-BETA FreeBSD 4.3-BETA #2: Mon Mar 19 12:24:00 EST 2001 root@twwells.com:/usr/obj/usr/src/sys/TWWELLS i386 > > > >Description: > > I blew away my /modules (and /modules.old) directory and > then did a make installkernel. The result was a file where > /modules should have been. > > >How-To-Repeat: > > rm -fr /modules* > cd /usr/src > make installkernel KERNCONF=yourkernel > > >Fix: > > For a workaround, just don't blow away /modules (delete > its contents instead) or, having done so, mkdir /modules > before doing the make installkernel. The /modules directory is created in the first stage of the 'make installworld' process. As world and kernel should generally always be rebuild/reinstalled in sync, this does not usually arise as a problem :) As you correctly point out, a workaround is to always have a /modules dir. I wonder, though, whether the 'installkernel' target in Makefile.inc1 should not, too, invoke a 'make hierarchy', or at least some subset of that, to do an mtree from BSD.root.dist; that should ensure that the /modules directory is there. G'luck, Peter -- I am the thought you are now thinking. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message