From owner-freebsd-arch@FreeBSD.ORG Wed Aug 4 18:23:23 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 6EBBD16A4CE for ; Wed, 4 Aug 2004 18:23:23 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A2BC43D41 for ; Wed, 4 Aug 2004 18:23:23 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 1075 invoked from network); 4 Aug 2004 18:23:23 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail1.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 Aug 2004 18:23:22 -0000 Received: from hydrogen.funkthat.com (gxwfwn@localhost.funkthat.com [127.0.0.1])i74INMuU057941 for ; Wed, 4 Aug 2004 11:23:22 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i74INMUU057940 for freebsd-arch@freebsd.org; Wed, 4 Aug 2004 11:23:22 -0700 (PDT) Date: Wed, 4 Aug 2004 11:23:21 -0700 From: John-Mark Gurney To: freebsd-arch@freebsd.org Message-ID: <20040804182321.GY991@funkthat.com> Mail-Followup-To: freebsd-arch@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Subject: 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 18:23:23 -0000 I propose to add a install_and_reboot (if someone has a better name I'm open to suggestions). It installs the kernel, and then using nextboot will set to boot the freshly installed kernel, and then reboot the machine. I normally use it as: make install_and_reboot KERNEL=kernel.test Patch follows: Index: conf/kern.post.mk =================================================================== RCS file: /usr/src/FreeBSD/src/sys/conf/kern.post.mk,v retrieving revision 1.68 diff -u -r1.68 kern.post.mk --- conf/kern.post.mk 27 Jun 2004 23:03:43 -0000 1.68 +++ conf/kern.post.mk 4 Aug 2004 17:14:55 -0000 @@ -29,6 +29,9 @@ .ORDER: kernel-install modules-install +install_and_reboot: install + nextboot -k ${KERNEL} && shutdown -r now + kernel-all: ${KERNEL_KO} kernel-cleandir: kernel-clean -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."