mirror of
https://github.com/opnsense/src.git
synced 2026-02-12 23:36:07 -05:00
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
1 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue