From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 21 12:10:52 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 AB8CD16A4CE for ; Mon, 21 Jun 2004 12:10:52 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90AF243D45 for ; Mon, 21 Jun 2004 12:10:52 +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 i5LCAPuE077195 for ; Mon, 21 Jun 2004 12:10:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5LCAPpn077194; Mon, 21 Jun 2004 12:10:25 GMT (envelope-from gnats) Date: Mon, 21 Jun 2004 12:10:25 GMT Message-Id: <200406211210.i5LCAPpn077194@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Ruslan Ermilov 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: Ruslan Ermilov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2004 12:10:52 -0000 The following reply was made to PR misc/68150; it has been noted by GNATS. From: Ruslan Ermilov To: Eugene Grosbein Cc: bug-followup@FreeBSD.org Subject: Re: misc/68150: make installkernel fails when /usr is mounted read-only Date: Mon, 21 Jun 2004 15:04:04 +0300 On Mon, Jun 21, 2004 at 01:38:28AM +0800, Eugene Grosbein wrote: > > make installkernel tries to write to /usr, it did not in 4.9-RELEASE. > The change occured in revision 1.416 (and MFC 1.141.2.66) > of src/Makefile.inc1. > > 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 "--------------------------------------------------------------" cd ${.CURDIR}; \ ${CROSSENV} PATH=${TMPPATH} ${MAKE} -f Makefile.inc1 hierarchy +.endif @echo @echo "--------------------------------------------------------------" @echo ">>> Installing kernel" %%% Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer