From owner-svn-src-all@FreeBSD.ORG Sat Dec 3 17:02:52 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24301106566C; Sat, 3 Dec 2011 17:02:52 +0000 (UTC) (envelope-from kensmith@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 136548FC08; Sat, 3 Dec 2011 17:02:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pB3H2piC048597; Sat, 3 Dec 2011 17:02:51 GMT (envelope-from kensmith@svn.freebsd.org) Received: (from kensmith@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pB3H2pIe048595; Sat, 3 Dec 2011 17:02:51 GMT (envelope-from kensmith@svn.freebsd.org) Message-Id: <201112031702.pB3H2pIe048595@svn.freebsd.org> From: Ken Smith Date: Sat, 3 Dec 2011 17:02:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org X-SVN-Group: releng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228238 - releng/9.0/usr.sbin/bsdinstall/scripts X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 17:02:52 -0000 Author: kensmith Date: Sat Dec 3 17:02:51 2011 New Revision: 228238 URL: http://svn.freebsd.org/changeset/base/228238 Log: MFC r228237: > Add a screen that asks if the user would like to enable crash dumps, > giving them a very brief description of the trade-offs. Whether the > user opts in or out add an entry to what will become /etc/rc.conf > explaining what dumpdev is and how to turn on/off crash dumps. The folks > who handle interacting with users submitting PRs have asked for this. > > Reviewed by: nwhitehorn Approved by: re (kib) Modified: releng/9.0/usr.sbin/bsdinstall/scripts/services Directory Properties: releng/9.0/usr.sbin/bsdinstall/scripts/ (props changed) Modified: releng/9.0/usr.sbin/bsdinstall/scripts/services ============================================================================== --- releng/9.0/usr.sbin/bsdinstall/scripts/services Sat Dec 3 16:58:55 2011 (r228237) +++ releng/9.0/usr.sbin/bsdinstall/scripts/services Sat Dec 3 17:02:51 2011 (r228238) @@ -26,6 +26,8 @@ # # $FreeBSD$ +: ${DIALOG_OK=0} + if [ -f $BSDINSTALL_TMPETC/rc.conf.services ]; then eval `sed -e s/YES/on/I -e s/NO/off/I $BSDINSTALL_TMPETC/rc.conf.services` else @@ -51,3 +53,15 @@ for daemon in $DAEMONS; do echo ${daemon}_enable=\"YES\" >> $BSDINSTALL_TMPETC/rc.conf.services done +echo \# Set dumpdev to \"AUTO\" to enable crash dumps, \"NO\" to disable >> \ + $BSDINSTALL_TMPETC/rc.conf.services + +dialog --backtitle "FreeBSD Installer" --title "Dumpdev Configuration" \ + --nocancel --yesno \ + "Would you like to enable crash dumps? If you start having problems with the system it can help the FreeBSD developers debug the problem. But the crash dumps can take up a lot of disk space in /var." 0 0 + +if [ $? -eq $DIALOG_OK ]; then + echo dumpdev=\"AUTO\" >> $BSDINSTALL_TMPETC/rc.conf.services +else + echo dumpdev=\"NO\" >> $BSDINSTALL_TMPETC/rc.conf.services +fi