svn commit: r248487 - head/etc/rc.d
Colin Percival
cperciva at FreeBSD.org
Tue Mar 19 04:42:05 UTC 2013
Author: cperciva
Date: Tue Mar 19 04:42:04 2013
New Revision: 248487
URL: http://svnweb.freebsd.org/changeset/base/248487
Log:
If dumpdev is AUTO but no dump device has been set -- i.e., there is no swap
space configured for rc.d/dumpon to designate for dumping -- then exit
silently rather than with a
> realpath: /dev/dumpdev: No such file or directory
error message.
An argument could be made that we should print a (more informative) warning
message; but given that under the same conditions the rc.d/dumpon script will
already print a
> No suitable dump device was found
warning, it seems that printing an additional
> Dump device does not exist. Savecore not run.
warning would be superfluous.
Modified:
head/etc/rc.d/savecore
Modified: head/etc/rc.d/savecore
==============================================================================
--- head/etc/rc.d/savecore Tue Mar 19 00:39:02 2013 (r248486)
+++ head/etc/rc.d/savecore Tue Mar 19 04:42:04 2013 (r248487)
@@ -23,6 +23,9 @@ savecore_prestart()
return 1
;;
[Aa][Uu][Tt][Oo])
+ if [ ! -L /bin/realpath ]; then
+ return 1
+ fi
dumpdev=`/bin/realpath /dev/dumpdev`
;;
esac
More information about the svn-src-all
mailing list