4de2612967d06c4fdbf524a62556a1e8118a006fxs# CDDL HEADER START
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# The contents of this file are subject to the terms of the
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Common Development and Distribution License (the "License").
4de2612967d06c4fdbf524a62556a1e8118a006fxs# You may not use this file except in compliance with the License.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4de2612967d06c4fdbf524a62556a1e8118a006fxs# See the License for the specific language governing permissions
4de2612967d06c4fdbf524a62556a1e8118a006fxs# and limitations under the License.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# When distributing Covered Code, include this CDDL HEADER in each
4de2612967d06c4fdbf524a62556a1e8118a006fxs# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# If applicable, add the following below this CDDL HEADER, with the
4de2612967d06c4fdbf524a62556a1e8118a006fxs# fields enclosed by brackets "[]" replaced with your own identifying
4de2612967d06c4fdbf524a62556a1e8118a006fxs# information: Portions Copyright [yyyy] [name of copyright owner]
4de2612967d06c4fdbf524a62556a1e8118a006fxs# CDDL HEADER END
489b7c4ab76ae8df137fbfcc2214f7baa52883a0Raymond Chen# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Make sure that the essential libraries can be found.
4de2612967d06c4fdbf524a62556a1e8118a006fxs # display recovery instructions - the first call logs to the service
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits cecho "These instructions were also logged to the file $RECOVERFILE\n"
4de2612967d06c4fdbf524a62556a1e8118a006fxs# root ("/") is already mounted read only by the kernel.
4de2612967d06c4fdbf524a62556a1e8118a006fxs# Remount the root read-write.
4de2612967d06c4fdbf524a62556a1e8118a006fxs # In single-user maintenance mode, we don't have a writable
4de2612967d06c4fdbf524a62556a1e8118a006fxs # root partition, so we _cannot_ use devlinks. Therefore we
4de2612967d06c4fdbf524a62556a1e8118a006fxs # have to do some dancing - first mount the physical path
4de2612967d06c4fdbf524a62556a1e8118a006fxs # devlink mapping, and then re-mount the root slice. Of course,
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits # ZFS root environments should _not_ have an entry for /
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits 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"
bf56214c0556fa6864189c826d39dbe156bb22a0stevel [ -n "$otherops" ] && mntopts="${mntopts},${otherops}"
bf56214c0556fa6864189c826d39dbe156bb22a0stevel RVAL=`$MOUNT -m -F $fstype -o $mntopts $new_special \
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits if [ $? -eq 0 ]; then
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits 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