Date: Tue, 22 Jun 2004 02:50:09 GMT From: Eugene Grosbein <eugen@kuzbass.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/68150: make installkernel fails when /usr is mounted read-only Message-ID: <200406220250.i5M2o9hq023943@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/68150; it has been noted by GNATS. From: Eugene Grosbein <eugen@kuzbass.ru> To: Ruslan Ermilov <ru@FreeBSD.org> Cc: Eugene Grosbein <eugen@grosbein.pp.ru>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406220250.i5M2o9hq023943>