Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Aug 2004 17:11:33 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-arch@FreeBSD.org, John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Cc:        Garance A Drosihn <drosih@rpi.edu>
Subject:   Re: install_and_reboot target for kernel's...
Message-ID:  <200408041711.33217.jhb@FreeBSD.org>
In-Reply-To: <20040804200535.GZ991@funkthat.com>
References:  <20040804182321.GY991@funkthat.com> <p06110408bd36e1dd6d66@[128.113.24.47]> <20040804200535.GZ991@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 04 August 2004 04:05 pm, John-Mark Gurney wrote:
> Garance A Drosihn wrote this message on Wed, Aug 04, 2004 at 15:05 -0400:
> > Hardly seems worth it.  Create a script "iark":
> >     #!/bin/sh
> >     cd /usr/src && make installkernel KERNEL=$1 && nextboot -k
> > ${KERNEL} && reboot
> >
> > (aside: I remember someone telling me that it makes more sense
> > to just type 'reboot' than 'shutdown -r now'.  If you do add
> > the target, don't you want it to depend on "installkernel" and
> > not "install"?)
> >
> > This way you end up with even less typing:
> >     iark kernel.test
> >
> > I'd actually spruce up the script a bit more than that, if it
> > were me...  Just my 2 cents.
>
> a) not everyone knows about nextboot, putting it in the makefile and
> 	documenting it will allow more people to know about it

That I debate. :)  Having a bikeshed on arch@ might let more people know about 
it, but documenting things doesn't always make them more widely known.  
There's a reason they are called FAQs.  Also, the intended audience for this 
target is mostly developers, and they probably already know about nextboot.

> b) there are lots of doesn't seem worth it scripts that exist in the
> 	base system..  we don't require people to do:
> 	make installkernel installmodules instead of make install do we?
>
> the reason it depends upon install and not just installkernel is that
> we want the modules installed too...

The confusion there is that he is using installkernel from /usr/src/Makefile 
which does a full kernel install including modules if needed.  I'm not sure 
that this target is really a good idea given reboot vs. shutdown as well as 
using nextboot options (I would probably want to use nextboot -o "-s" -k test 
most of the time since I usually like to boot test kernels into single user 
so I can do simple testing before I unleash it on multiuser) means that by 
the time you add tweaks and hooks for the various different options you 
really haven't saved much typing.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408041711.33217.jhb>