mpxio-upgrade revision c0e23f97dac5a836608708bd45ede171b8724bd7
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen# CDDL HEADER START
8759adc67109b5a12a7af3ed717c7040622a0a04Timo Sirainen# The contents of this file are subject to the terms of the
8759adc67109b5a12a7af3ed717c7040622a0a04Timo Sirainen# Common Development and Distribution License (the "License").
8759adc67109b5a12a7af3ed717c7040622a0a04Timo Sirainen# You may not use this file except in compliance with the License.
8759adc67109b5a12a7af3ed717c7040622a0a04Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c1277b66e1aaadaae8cb3344b97b60b0fe57ca26Timo Sirainen# See the License for the specific language governing permissions
8759adc67109b5a12a7af3ed717c7040622a0a04Timo Sirainen# and limitations under the License.
8759adc67109b5a12a7af3ed717c7040622a0a04Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
8759adc67109b5a12a7af3ed717c7040622a0a04Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen# If applicable, add the following below this CDDL HEADER, with the
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen# CDDL HEADER END
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen# Use is subject to license terms.
dc9bfb7dc057964238e181d3d8b08751527bb08aTimo Sirainen# Make sure that the essential libraries can be found.
shcat $RECOVERFILE >/dev/msglog 2>&1
exec < $vfstab; readvfstab /
cecho "stmsboot: System has ZFS Root *and* an entry for / in /etc/vfstab\nstmsboot: Please remove the / entry from /etc/vfstab and then run\n# svcadm clear mpxio-upgrade"
if [ $? -eq 0 ]; then
$MOUNT -o remount,rw $new_special / \
$new_special $mountp >/dev/msglog 2>&1
if [ $? -eq 0 ]; then
ret_val=0
*backfstype=nfs*)
*backfstype=hsfs*)
$MOUNT -m -F $cfsbacktype -o ro $new_special $mountp \
ret_val=$?
$MOUNT -m -F $fstype -o $mntopts $new_special /usr \
ret_val=$?
return $ret_val
export NOINUSE_CHECK
if [ $? -eq 0 ]; then
$LS $DUMPISZFS >>/dev/null 2>&1
if [ $? -ne 0 ]; then
for path in $cur_bootpath; do
if [ ! -s $DEVFSADM ]; then
if mpxio_mount_root; then
$STMSBOOTUTIL -u >/dev/msglog 2>&1
if [ $? -eq 0 ]; then
if [ $? -ne 0 ]; then
exec < $SAVEDIR/vfstab.new; readvfstab /
if update_dumpconf; then
[ -x $METADEVADM ]; then
$METADEVADM -r >/dev/msglog 2>&1
if [ $usrmounted -eq 1 ]; then