From owner-freebsd-arch@FreeBSD.ORG Wed Aug 4 20:05:42 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 54C2916A4CF for ; Wed, 4 Aug 2004 20:05:41 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D5AA43D45 for ; Wed, 4 Aug 2004 20:05:38 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 27863 invoked from network); 4 Aug 2004 20:05:37 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 Aug 2004 20:05:37 -0000 Received: from hydrogen.funkthat.com (sxeryj@localhost.funkthat.com [127.0.0.1])i74K5auU059472; Wed, 4 Aug 2004 13:05:37 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i74K5a9X059471; Wed, 4 Aug 2004 13:05:36 -0700 (PDT) Date: Wed, 4 Aug 2004 13:05:35 -0700 From: John-Mark Gurney To: Garance A Drosihn Message-ID: <20040804200535.GZ991@funkthat.com> Mail-Followup-To: Garance A Drosihn , freebsd-arch@freebsd.org References: <20040804182321.GY991@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-arch@freebsd.org Subject: Re: install_and_reboot target for kernel's... X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney 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 20:05:42 -0000 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 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... reboot vs. shutdown: I don't care, I just normally use shutdown, and we could even automate the shutdown message that gets logged to specify that we are rebooting to a new test kernel, which reboot doesn't.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."