changeset 9922:bac6a4442a68

6848782 stmsboot -e on t2000 with SVM mirrored root creates boot archive inconsistency in svc mpxio-update
author jianfei wang - Sun Microsystems - Beijing China <Jianfei.Wang@Sun.COM>
date Sun, 21 Jun 2009 10:17:20 +0800
parents 0c3d84a756da
children 0641efc19829
files usr/src/cmd/stmsboot/mpxio-upgrade
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/stmsboot/mpxio-upgrade	Sat Jun 20 15:42:11 2009 -0700
+++ b/usr/src/cmd/stmsboot/mpxio-upgrade	Sun Jun 21 10:17:20 2009 +0800
@@ -20,7 +20,7 @@
 # CDDL HEADER END
 #
 #
-# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 
@@ -284,8 +284,7 @@
 	# now strip off leading and trailing space chars
 	new_bootpath=`echo $NEWBOOTPATH`
 	$EEPROM bootpath="$new_bootpath"
-	cecho "stmsboot: bootpath has been updated, now regenerating boot archive"
-	$BOOTADM update-archive	    
+	cecho "stmsboot: bootpath has been updated"
 	cecho ""
 }
 
@@ -350,6 +349,8 @@
 				# only update bootpath here for x86
 				update_bootpath
 			fi
+			cecho "stmsboot: now regenerating boot archive"
+			$BOOTADM update-archive
 		else
 			mpxio_error "failed to update /etc/vfstab."
 		fi