install_and_reboot target for kernel's...
From: John-Mark Gurney (gurney_j_at_resnet.uoregon.edu)
Date: 08/04/04
- Previous message: Rostislav Krasny: "again question about "IRQ 2 problem""
- Next in thread: Garance A Drosihn: "Re: install_and_reboot target for kernel's..."
- Reply: Garance A Drosihn: "Re: install_and_reboot target for kernel's..."
- Reply: Conrad J. Sabatier: "Re: install_and_reboot target for kernel's..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 4 Aug 2004 11:23:21 -0700 To: freebsd-arch@freebsd.org
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."
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Rostislav Krasny: "again question about "IRQ 2 problem""
- Next in thread: Garance A Drosihn: "Re: install_and_reboot target for kernel's..."
- Reply: Garance A Drosihn: "Re: install_and_reboot target for kernel's..."
- Reply: Conrad J. Sabatier: "Re: install_and_reboot target for kernel's..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|