Date: Tue, 1 Jan 2008 04:56:19 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 132219 for review Message-ID: <200801010456.m014uJ1J077802@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132219 Change 132219 by jb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801010456.m014uJ1J077802>