From girgen@palle.girgensohn.se  Mon May  2 22:57:29 2005
Return-Path: <girgen@palle.girgensohn.se>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 41CAD16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 May 2005 22:57:29 +0000 (GMT)
Received: from palle.girgensohn.se (1-2-8-5a.asp.sth.bostream.se [82.182.157.66])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2EAFB43D55
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 May 2005 22:57:28 +0000 (GMT)
	(envelope-from girgen@palle.girgensohn.se)
Received: from localhost (localhost.girgensohn.se [127.0.0.1])
	by palle.girgensohn.se (Postfix) with ESMTP id 2698C1D838
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 May 2005 00:57:27 +0200 (CEST)
Received: from palle.girgensohn.se ([127.0.0.1])
 by localhost (palle.girgensohn.se [127.0.0.1]) (amavisd-new, port 10024)
 with LMTP id 00592-08 for <FreeBSD-gnats-submit@freebsd.org>;
 Tue,  3 May 2005 00:57:26 +0200 (CEST)
Received: by palle.girgensohn.se (Postfix, from userid 1000)
	id E76071D837; Tue,  3 May 2005 00:57:26 +0200 (CEST)
Message-Id: <20050502225726.E76071D837@palle.girgensohn.se>
Date: Tue,  3 May 2005 00:57:26 +0200 (CEST)
From: Palle Girgensohn <girgen@FreeBSD.org>
Reply-To: Palle Girgensohn <girgen@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: bad docs for rc.conf => no kernel core dump
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80566
>Category:       bin
>Synopsis:       [patch] bad docs for rc.conf => no kernel core dump
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 02 23:00:22 GMT 2005
>Closed-Date:    Tue May 03 03:51:58 GMT 2005
>Last-Modified:  Tue May 03 03:51:58 GMT 2005
>Originator:     Palle Girgensohn <girgen@FreeBSD.org>
>Release:        FreeBSD 5.4-RC i386
>Organization:
Ping Pong AB
>Environment:
System: FreeBSD palle.girgensohn.se 5.4-RC1 FreeBSD 5.4-RC1 #20: Fri Apr  8 01:03:54 CEST 2005     girgen@palle.girgensohn.se:/usr/obj/4/usr/5src/sys/PALLE  i386


	
>Description:
In man page for rc.conf:

     dumpdev     (str) Indicates the device (usually a swap partition) to
                 which a crash dump should be written in the event of a system
                 crash.  If the value of this variable is ``AUTO'', the first
                 suitable swap device listed in /etc/fstab will be used as
                 dump device.  Otherwise, the value of this variable is passed
                 as the argument to dumpon(8).  To disable crash dumps, set
                 this variable to ``NO''.

Problem is, the AUTO switch is no implemented, neither for
/etc/rc.d/savecore nor /etc/rc.d/dumpon. (it is in 6-current, but not
in 5.4-stable)

>How-To-Repeat:
set dumpdev="AUTO" in /etc/rc.onf
crash machine
there will be an error when trying to retrieve the kernel dump
>Fix:
Either MFC the auto stuff for the named rc.d scripts (best), or apply
this trivial man page patch:

Index: rc.conf.5
===================================================================
RCS file: /misc/ncvs/src/share/man/man5/rc.conf.5,v
retrieving revision 1.221.2.11
diff -u -r1.221.2.11 rc.conf.5
--- rc.conf.5	17 Mar 2005 00:04:45 -0000	1.221.2.11
+++ rc.conf.5	29 Apr 2005 20:21:29 -0000
@@ -2487,12 +2487,7 @@
 .Pq Vt str
 Indicates the device (usually a swap partition) to which a crash dump
 should be written in the event of a system crash.
-If the value of this variable is
-.Dq Li AUTO ,
-the first suitable swap device listed in
-.Pa /etc/fstab
-will be used as dump device.
-Otherwise, the value of this variable is passed as the argument to
+The value of this variable is passed as the argument to
 .Xr dumpon 8 .
 To disable crash dumps, set this variable to
 .Dq Li NO .
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Tue May 3 03:51:22 GMT 2005 
State-Changed-Why:  
Duplicate of conf/80468 (already fixed btw). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80566 
>Unformatted:
