PERFORCE change 132219 for review

John Birrell jb at FreeBSD.org
Mon Dec 31 20:56:20 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=132219

Change 132219 by jb at jb_freebsd1 on 2008/01/01 04:55:57

	Add another boot menu option to boot to single user with the DTrace
	modules loaded (and anonymous enablings if defined). This gives me
	a chance to run dtrace(8) in a read-only environment on my development
	box without risking trashing disks when things go bump in the night.
	As they tend to do when messing with the affairs of wizards.

Affected files ...

.. //depot/projects/dtrace/src/sys/boot/forth/beastie.4th#6 edit

Differences ...

==== //depot/projects/dtrace/src/sys/boot/forth/beastie.4th#6 (text+ko) ====

@@ -41,6 +41,7 @@
 variable bootkey
 variable bootacpikey
 variable bootdtracekey
+variable bootdtraceskey
 variable bootsafekey
 variable bootverbosekey
 variable bootsinglekey
@@ -196,6 +197,7 @@
 	printmenuitem ."  Boot FreeBSD in single user mode" bootsinglekey !
 	printmenuitem ."  Boot FreeBSD with verbose logging" bootverbosekey !
 	printmenuitem ."  Boot FreeBSD with DTrace enabled" bootdtracekey !
+	printmenuitem ."  Boot FreeBSD su with DTrace enabled" bootdtraceskey !
 	printmenuitem ."  Escape to loader prompt" escapekey !
 	printmenuitem ."  Reboot" rebootkey !
 	menuX @ 20 at-xy
@@ -289,6 +291,11 @@
 			s" YES" s" dtrace_boot" setenv
 			0 boot
 		then
+		dup bootdtraceskey @ = if
+			s" YES" s" dtrace_boot" setenv
+			s" YES" s" boot_single" setenv
+			0 boot
+		then
 		dup escapekey @ = if
 			2drop
 			s" NO" s" autoboot_delay" setenv


More information about the p4-projects mailing list