Move debug.{trace,debugger}_on_panic and kern.panic_reboot_wait_time in
EC2 instances from sysctl.conf to loader.conf; these can all be set as loader tunables, and setting them in loader.conf gives us the right behaviour in the event of a kernel panic taking place prior to when sysctl.conf is processed. MFC after: 1 week
This commit is contained in:
parent
0484aa6d85
commit
b6028b0ba1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332663
@ -60,9 +60,9 @@ vm_extra_pre_umount() {
|
||||
# The EC2 console is output-only, so while printing a backtrace can
|
||||
# be useful, there's no point dropping into a debugger or waiting
|
||||
# for a keypress.
|
||||
echo 'debug.trace_on_panic=1' >> ${DESTDIR}/etc/sysctl.conf
|
||||
echo 'debug.debugger_on_panic=0' >> ${DESTDIR}/etc/sysctl.conf
|
||||
echo 'kern.panic_reboot_wait_time=0' >> ${DESTDIR}/etc/sysctl.conf
|
||||
echo 'debug.trace_on_panic=1' >> ${DESTDIR}/boot/loader.conf
|
||||
echo 'debug.debugger_on_panic=0' >> ${DESTDIR}/boot/loader.conf
|
||||
echo 'kern.panic_reboot_wait_time=0' >> ${DESTDIR}/boot/loader.conf
|
||||
|
||||
# The console is not interactive, so we might as well boot quickly.
|
||||
echo 'autoboot_delay="-1"' >> ${DESTDIR}/boot/loader.conf
|
||||
|
Loading…
Reference in New Issue
Block a user