Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2018 01:54:25 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r332982 - stable/11/release/tools
Message-ID:  <201804250154.w3P1sP8x094599@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Wed Apr 25 01:54:24 2018
New Revision: 332982
URL: https://svnweb.freebsd.org/changeset/base/332982

Log:
  MFC r332663: Move panic-related settings from sysctl.conf to loader.conf so
  that they apply if an EC2 instance panics while booting.
  
  Sponsored by:	https://www.patreon.com/cperciva

Modified:
  stable/11/release/tools/ec2.conf
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/release/tools/ec2.conf
==============================================================================
--- stable/11/release/tools/ec2.conf	Wed Apr 25 01:48:15 2018	(r332981)
+++ stable/11/release/tools/ec2.conf	Wed Apr 25 01:54:24 2018	(r332982)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804250154.w3P1sP8x094599>