changeset 6897:b13abcd2c9e1

6714187 fs-usr should not set dump device if DUMPADM_SAVDIR is not configured
author gw25295
date Tue, 17 Jun 2008 17:55:48 -0700
parents 3d40bdd4ba56
children 198ef593aad4
files usr/src/cmd/svc/milestone/fs-usr
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/svc/milestone/fs-usr	Tue Jun 17 17:02:06 2008 -0700
+++ b/usr/src/cmd/svc/milestone/fs-usr	Tue Jun 17 17:55:48 2008 -0700
@@ -43,6 +43,15 @@
 	readswapdev $DUMPADM_DEVICE < $vfstab
 
 	#
+	# Make sure that the dump save area has been configured before
+	# proceeding. If the variable has not been defined or does not exist
+	# then bail out early. This will prevent us from configuring a
+	# dump save area before a hostname has been configured (i.e after
+	# sys-unconfig has been invoked).
+	#
+	[ -z "$DUMPADM_SAVDIR" ] && return
+
+	#
 	# If we have a dedicated dump device, then go ahead and configure it.
 	# 
 	if [ "x$special" != "x$DUMPADM_DEVICE" ]; then