Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Aug 2004 05:55:20 -0500 (CDT)
From:      "Conrad J. Sabatier" <conrads@cox.net>
To:        John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: install_and_reboot target for kernel's...
Message-ID:  <XFMail.20040807055520.conrads@cox.net>
In-Reply-To: <20040804182321.GY991@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <conrads@cox.net> -- "In Unix veritas"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20040807055520.conrads>