From owner-svn-src-all@FreeBSD.ORG Fri Sep 24 07:27:54 2010 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 3903D1065679; Fri, 24 Sep 2010 07:27:54 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 28D238FC26; Fri, 24 Sep 2010 07:27:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o8O7RsnR093516; Fri, 24 Sep 2010 07:27:54 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o8O7RsWw093514; Fri, 24 Sep 2010 07:27:54 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201009240727.o8O7RsWw093514@svn.freebsd.org> From: Andriy Gapon Date: Fri, 24 Sep 2010 07:27:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r213094 - stable/8/sbin/reboot 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: Fri, 24 Sep 2010 07:27:54 -0000 Author: avg Date: Fri Sep 24 07:27:53 2010 New Revision: 213094 URL: http://svn.freebsd.org/changeset/base/213094 Log: MFC r212789: nextboot: warn about limitations of /boot/nextboot.conf on ZFS Modified: stable/8/sbin/reboot/nextboot.sh Directory Properties: stable/8/sbin/reboot/ (props changed) Modified: stable/8/sbin/reboot/nextboot.sh ============================================================================== --- stable/8/sbin/reboot/nextboot.sh Fri Sep 24 07:23:48 2010 (r213093) +++ stable/8/sbin/reboot/nextboot.sh Fri Sep 24 07:27:53 2010 (r213094) @@ -50,6 +50,14 @@ if [ ${force} = "NO" -a ! -d /boot/${ker exit 1 fi +df -Tn "/boot/" 2>/dev/null | while read _fs _type _other ; do + [ "zfs" = "${_type}" ] || continue + cat 1>&2 <<-EOF + WARNING: loader(8) has only R/O support for ZFS + nextboot.conf will NOT be reset in case of kernel boot failure + EOF +done + cat > ${nextboot_file} << EOF nextboot_enable="YES" kernel="${kernel}"