mpxio-upgrade revision bd93c05dbd9b8f1e8d2edf48c777bc881f927608
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# CDDL HEADER START
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# The contents of this file are subject to the terms of the
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# Common Development and Distribution License (the "License").
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# You may not use this file except in compliance with the License.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# See the License for the specific language governing permissions
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# and limitations under the License.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# When distributing Covered Code, include this CDDL HEADER in each
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# If applicable, add the following below this CDDL HEADER, with the
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# fields enclosed by brackets "[]" replaced with your own identifying
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# information: Portions Copyright [yyyy] [name of copyright owner]
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# CDDL HEADER END
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
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
$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