summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-01-21 01:16:11 +0000
committersobomax <sobomax@FreeBSD.org>2002-01-21 01:16:11 +0000
commit4e0549db5573bd438ce183a3604b25b9ee373c32 (patch)
tree797223f639fe4f7e38b0645d11503b107b19512e /sys/boot
parent149d99c26eff591dab1ec3964744640075e3d7cb (diff)
downloadFreeBSD-src-4e0549db5573bd438ce183a3604b25b9ee373c32.zip
FreeBSD-src-4e0549db5573bd438ce183a3604b25b9ee373c32.tar.gz
Allow dump device be configured as early as possible using loader(8) tunable.
This allows obtaining crash dumps from the panics occured during late stages of kernel initialisation before system enters into single-user mode. MFC after: 2 weeks
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/loader.86
-rw-r--r--sys/boot/forth/loader.conf1
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/boot/common/loader.8 b/sys/boot/common/loader.8
index 185f391..d7466d5 100644
--- a/sys/boot/common/loader.8
+++ b/sys/boot/common/loader.8
@@ -392,6 +392,12 @@ when the kernel is booted.
This can be overridden by setting
.Va rootdev
explicitly.
+.It Va dumpdev
+A name of device where the kernel can save a crash dump in the case
+of a panic. This automatically sets
+.Va kern.dumpdev
+.Xr sysctl 3
+MIB variable.
.El
.Pp
Other variables are used to override kernel tunable parameters.
diff --git a/sys/boot/forth/loader.conf b/sys/boot/forth/loader.conf
index 7256ea6..e04aa4a 100644
--- a/sys/boot/forth/loader.conf
+++ b/sys/boot/forth/loader.conf
@@ -64,6 +64,7 @@ module_path="/boot/kernel;/boot/modules;/modules" # Set the module search path
#boot_verbose="NO" # Causes extra debugging information to be printed
#init_path="/sbin/init:/sbin/oinit:/sbin/init.bak:/stand/sysinstall"
# Sets the list of init candidates
+#dumpdev="ad0s1b" # Set device for crash dumps
##############################################################
OpenPOWER on IntegriCloud