From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 5 09:26:58 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3F7616A468 for ; Wed, 5 Dec 2007 09:26:58 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from mail.vega.ru (infra.dev.vega.ru [90.156.167.14]) by mx1.freebsd.org (Postfix) with ESMTP id 7656813C45A for ; Wed, 5 Dec 2007 09:26:57 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from msk-ly-gw1.masterhost.ru ([87.242.97.68]:53519 helo=edoofus.dev.vega.ru) by mail.vega.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1Izq8j-000Ext-Oy; Wed, 05 Dec 2007 09:01:57 +0000 Received: from edoofus.dev.vega.ru (localhost [127.0.0.1]) by edoofus.dev.vega.ru (8.14.2/8.14.2) with ESMTP id lB591ojh030176; Wed, 5 Dec 2007 12:01:51 +0300 (MSK) (envelope-from rermilov@team.vega.ru) Received: (from ru@localhost) by edoofus.dev.vega.ru (8.14.2/8.14.2/Submit) id lB591oSF030175; Wed, 5 Dec 2007 12:01:50 +0300 (MSK) (envelope-from rermilov@team.vega.ru) X-Authentication-Warning: edoofus.dev.vega.ru: ru set sender to rermilov@team.vega.ru using -f Date: Wed, 5 Dec 2007 12:01:50 +0300 From: Ruslan Ermilov To: Marco Walraven Message-ID: <20071205090150.GA29912@team.vega.ru> References: <20071204074328.GR36677@cotton.terantula.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071204074328.GR36677@cotton.terantula.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-hackers@freebsd.org Subject: Re: Make release fails on mdconfig X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2007 09:26:58 -0000 On Tue, Dec 04, 2007 at 08:43:29AM +0100, Marco Walraven wrote: > Hi All, > > I have been doing some release builds overhere with success, however lately the builds fail on mdconfig with the following error: > > + mdconfig -a -t vnode -f /R/stage/mfsroot/mfsroot > mdconfig: failed to load geom_md module: No such file or directory > + MDDEVICE= > *** Error code 1 > > Looking at the chrooted environment I see that /boot/kernels > is not populated whereas in old builds it is. No, it has never been populated. > If I install a kernel into the chrooted environment using > 'make installkernel DESTDIR=/dir_to_chroot' and run a > 'make rerelease' mdconfig happily accepts it and the make > release builds successfully. The kernel I run has support > for mdconfig; I can use memory disks without problems. The md(4) driver is loaded if not present in the kernel just before switching to a chroot, by "make release": : # Ensure md.ko is loaded if md(4) is not statically compiled into : # the kernel : -mdconfig 2>/dev/null : env -i /usr/sbin/chroot `dirname ${_MK}` /`basename ${_MK}` > Any clue why this fails in the first place ? It's possible that your host system is running an older version of FreeBSD kernel with version 1 of "struct kld_file_stat", while the release(7) procedure requires that "/usr/obj be populated with the output of a native ``make buildworld'' compiled from sources matching the currently running kernel." ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Please fix that and try again. Following this requirement solved a similar problem for a colleague here. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer