From owner-freebsd-arch@FreeBSD.ORG Sat Aug 7 10:55:22 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 0696F16A4CE for ; Sat, 7 Aug 2004 10:55:22 +0000 (GMT) Received: from lakermmtao06.cox.net (lakermmtao06.cox.net [68.230.240.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A0A743D31 for ; Sat, 7 Aug 2004 10:55:21 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.71.51]) by lakermmtao06.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040807105520.FODV8791.lakermmtao06.cox.net@dolphin.local.net>; Sat, 7 Aug 2004 06:55:20 -0400 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with ESMTP id i77AtKXw022925; Sat, 7 Aug 2004 05:55:20 -0500 (CDT) (envelope-from conrads@dolphin.local.net) Received: (from conrads@localhost) by dolphin.local.net (8.13.1/8.13.1/Submit) id i77AtKQO022912; Sat, 7 Aug 2004 05:55:20 -0500 (CDT) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5.5 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20040804182321.GY991@funkthat.com> Date: Sat, 07 Aug 2004 05:55:20 -0500 (CDT) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: "Conrad J. Sabatier" To: John-Mark Gurney 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: conrads@cox.net List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 10:55:22 -0000 On 04-Aug-2004 John-Mark Gurney wrote: > 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 Wouldn't it be a good idea to also include '-o "-s"' in the nextboot command line? -- Conrad J. Sabatier -- "In Unix veritas"