ae115bc77f6fcde83175c75b4206dc2e50747966mrj# CDDL HEADER START
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# The contents of this file are subject to the terms of the
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# Common Development and Distribution License (the "License").
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# You may not use this file except in compliance with the License.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# See the License for the specific language governing permissions
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# and limitations under the License.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# When distributing Covered Code, include this CDDL HEADER in each
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# If applicable, add the following below this CDDL HEADER, with the
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# fields enclosed by brackets "[]" replaced with your own identifying
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# information: Portions Copyright [yyyy] [name of copyright owner]
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# CDDL HEADER END
e7cbe64f7a72dae5cb44f100db60ca88f3313c65gw# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# Use is subject to license terms.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj ?) echo "Usage: ${0##*/}: [-R \<root\>]"
ae115bc77f6fcde83175c75b4206dc2e50747966mrj bootdev=`grep -v "^#" "$ALT_ROOT"/etc/vfstab | grep pcfs \
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# Detect SVM root and return the list of raw devices under the mirror
b5b76fec872120fb1395471edcf51f378acd7e83George Wilson rootdevlist=`LC_ALL=C zpool iostat -v "$rootpool" | tail +5 |
ae115bc77f6fcde83175c75b4206dc2e50747966mrj if [[ $metadev = /dev/rdsk/* ]]; then
ae115bc77f6fcde83175c75b4206dc2e50747966mrj# multiboot: install grub on the boot slice
ae115bc77f6fcde83175c75b4206dc2e50747966mrj if [ $is_pcfs_boot = yes ]; then
ae115bc77f6fcde83175c75b4206dc2e50747966mrj cp "$ALT_ROOT"/boot/grub/menu.lst "$ALT_ROOT"/stubboot/boot/grub
ae115bc77f6fcde83175c75b4206dc2e50747966mrj bootdev=`grep -v "^#" "$ALT_ROOT"/etc/vfstab | grep pcfs | \
ae115bc77f6fcde83175c75b4206dc2e50747966mrj rpcfsdev=`echo "$bootdev" | sed -e "s/dev\/dsk/dev\/rdsk/"`