From owner-freebsd-bugs@FreeBSD.ORG Tue Jun 22 02:50:30 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD07716A4CE for ; Tue, 22 Jun 2004 02:50:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C694443D53 for ; Tue, 22 Jun 2004 02:50:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i5M2o9I9023944 for ; Tue, 22 Jun 2004 02:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5M2o9hq023943; Tue, 22 Jun 2004 02:50:09 GMT (envelope-from gnats) Date: Tue, 22 Jun 2004 02:50:09 GMT Message-Id: <200406220250.i5M2o9hq023943@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Eugene Grosbein Subject: Re: misc/68150: make installkernel fails when /usr is mounted read-only X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Eugene Grosbein List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2004 02:50:30 -0000 The following reply was made to PR misc/68150; it has been noted by GNATS. From: Eugene Grosbein To: Ruslan Ermilov Cc: Eugene Grosbein , bug-followup@FreeBSD.org Subject: Re: misc/68150: make installkernel fails when /usr is mounted read-only Date: Tue, 22 Jun 2004 10:40:47 +0800 Ruslan Ermilov wrote: > > The installkernel target is distinct target, not just a part > > of 'global system upgrade' and in my humble opinion there should > > be a way to install a kernel from /usr/obj/... without > > 'make hierarchy' overhead. Think of read-only /usr. Think of > > installing a kernel over NFS. Think of very slow channels and > > of amount of transfered data. > > > > This change is some kind of regression. > > > The change is here in the first place to aid those pour souls > who ``mv /modules /modules.old'' before doing installkernel. > ``make hierarchy'' just ensures that /modules exists. Also, > in 4.x, at least five modules install stuff under /usr/bin. > > > >Fix: > > > > Make an option allowing to install a kernel only - especially > > when MODULES_WITH_WORLD is defined. > > > Would you be happy with the following change (for RELENG_4): > > %%% > Index: Makefile.inc1 > =================================================================== > RCS file: /home/ncvs/src/Makefile.inc1,v > retrieving revision 1.141.2.67 > diff -u -p -u -r1.141.2.67 Makefile.inc1 > --- Makefile.inc1 16 Mar 2004 17:55:57 -0000 1.141.2.67 > +++ Makefile.inc1 21 Jun 2004 12:01:11 -0000 > @@ -508,11 +508,14 @@ buildkernel: > # Install the kernel defined by INSTALLKERNEL > # > installkernel reinstallkernel: > +.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KRNLSRCDIR}/modules) > + @echo > @echo "--------------------------------------------------------------" > @echo ">>> Making hierarchy" > @echo "--------------------------------------------------------------" That would be nice, thanks! Eugene