changeset 2987:e4236243a28c

6479921 ERROR: stmsboot: failed to configure the dump device after stmsboot -e
author ramat
date Thu, 26 Oct 2006 14:49:55 -0700
parents c782fcf7a319
children 5c29819d6612
files usr/src/cmd/stmsboot/mpxio-upgrade
diffstat 1 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/stmsboot/mpxio-upgrade	Thu Oct 26 14:05:48 2006 -0700
+++ b/usr/src/cmd/stmsboot/mpxio-upgrade	Thu Oct 26 14:49:55 2006 -0700
@@ -3,9 +3,8 @@
 # CDDL HEADER START
 #
 # The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License").  You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
 #
 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 # or http://www.opensolaris.org/os/licensing.
@@ -21,7 +20,7 @@
 # CDDL HEADER END
 #
 #
-# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
+# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 #ident	"%Z%%M%	%I%	%E% SMI"
@@ -159,6 +158,16 @@
 # update system dump configuration
 update_dumpconf()
 {
+	#
+	# Disable device-in-use checking (done in libdiskmgt).
+	# Without disabling this check, the configuration of dump device
+	# would fail as the device-in-use code incorrectly concludes that
+	# the device is in use and hence prevents configuration of the dump
+	# device.
+	#
+	NOINUSE_CHECK=1
+	export NOINUSE_CHECK
+
 	set -- `dumpadm -u 2>&1 | egrep 'cannot use /dev.* as dump device'`
 	if [ "x$4" != x ]; then
 		newname=`$STMSBOOTUTIL -M $4`