install_and_reboot target for kernel's...
John Baldwin
jhb at FreeBSD.org
Wed Aug 4 14:12:48 PDT 2004
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 at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-arch
mailing list