From owner-freebsd-arch@FreeBSD.ORG Wed Aug 4 21:12:47 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31B9916A549 for ; Wed, 4 Aug 2004 21:12:47 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0467F43D5E for ; Wed, 4 Aug 2004 21:12:47 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 10853 invoked from network); 4 Aug 2004 21:12:46 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 4 Aug 2004 21:12:46 -0000 Received: from 10.50.40.208 (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i74LCeQH036297; Wed, 4 Aug 2004 17:12:43 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-arch@FreeBSD.org, John-Mark Gurney Date: Wed, 4 Aug 2004 17:11:33 -0400 User-Agent: KMail/1.6 References: <20040804182321.GY991@funkthat.com> <20040804200535.GZ991@funkthat.com> In-Reply-To: <20040804200535.GZ991@funkthat.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408041711.33217.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Garance A Drosihn Subject: Re: install_and_reboot target for kernel's... X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 21:12:48 -0000 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 <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org