diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2010-09-24 07:27:53 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2010-09-24 07:27:53 +0000 |
| commit | f7789fd5c865c2aa19db13f7563cb83c1b9badf1 (patch) | |
| tree | 5493b710343c8d93a6c60e171976f20b92dc5635 /sbin | |
| parent | 604870e87f2278bc8106e394e065e2ae763927c3 (diff) | |
Notes
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/reboot/nextboot.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sbin/reboot/nextboot.sh b/sbin/reboot/nextboot.sh index 56e53f60a1a9..bb90c63d13c3 100644 --- a/sbin/reboot/nextboot.sh +++ b/sbin/reboot/nextboot.sh @@ -50,6 +50,14 @@ if [ ${force} = "NO" -a ! -d /boot/${kernel} ]; then 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}" |
