From owner-freebsd-bugs@FreeBSD.ORG Mon May 2 23:00:23 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6808416A4CF for ; Mon, 2 May 2005 23:00:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E666F43D67 for ; Mon, 2 May 2005 23:00:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j42N0M05073834 for ; Mon, 2 May 2005 23:00:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j42N0MYe073833; Mon, 2 May 2005 23:00:22 GMT (envelope-from gnats) Resent-Date: Mon, 2 May 2005 23:00:22 GMT Resent-Message-Id: <200505022300.j42N0MYe073833@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Palle Girgensohn Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41CAD16A4CE for ; 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/80566: bad docs for rc.conf => no kernel core dump X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Palle Girgensohn List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 23:00:23 -0000 >Number: 80566 >Category: bin >Synopsis: bad docs for rc.conf => no kernel core dump >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 02 23:00:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Palle Girgensohn >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: >Unformatted: