Date: Fri, 17 Sep 2010 09:50:36 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212789 - head/sbin/reboot Message-ID: <201009170950.o8H9oaoB025410@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Fri Sep 17 09:50:36 2010 New Revision: 212789 URL: http://svn.freebsd.org/changeset/base/212789 Log: nextboot: warn about limitations of /boot/nextboot.conf on ZFS MFC after: 1 week Modified: head/sbin/reboot/nextboot.sh Modified: head/sbin/reboot/nextboot.sh ============================================================================== --- head/sbin/reboot/nextboot.sh Fri Sep 17 09:14:40 2010 (r212788) +++ head/sbin/reboot/nextboot.sh Fri Sep 17 09:50:36 2010 (r212789) @@ -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}"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009170950.o8H9oaoB025410>