fs-root revision a192e900f6d2b0e1a822e3252c0dfd795ed49d76
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# CDDL HEADER START
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# The contents of this file are subject to the terms of the
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# Common Development and Distribution License (the "License").
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# You may not use this file except in compliance with the License.
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# See the License for the specific language governing permissions
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# and limitations under the License.
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# When distributing Covered Code, include this CDDL HEADER in each
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# If applicable, add the following below this CDDL HEADER, with the
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# fields enclosed by brackets "[]" replaced with your own identifying
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# information: Portions Copyright [yyyy] [name of copyright owner]
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# CDDL HEADER END
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# Use is subject to license terms.
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk# ident "%Z%%M% %I% %E% SMI"
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T.
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster# All rights reserved.
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster# Make sure that the libraries essential to this stage of booting can be found.
6e153e9671eb382c49354ab856404a71477cce58jeff.schenk # If there is an optimized libc available in /usr that fits this
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster /usr/sbin/mount | egrep -s "^/lib/libc.so.1 on "
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster if [ $? -ne 0 ]; then
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster# This mount function is sun4v only. It may be melded with the sun4u-us3
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster# version later.
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster LIBC_MOE_32=`/usr/bin/moe -32 /platform/$PLAT/lib/libc_psr/'$HWCAP'`
4c0f084e476c05989eb702c500a763ef09ba044ejeff.schenk egrep -s "^/platform/[^/]*/lib/libc_psr.so.1 on "
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster if [ $? -ne 0 ]; then
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster egrep -s "^/platform/[^/]*/lib/sparcv9/libc_psr.so.1 on "
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster if [ $? -ne 0 ]; then
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster# This is specific to sun4u[-us3].
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster# try to intelligently handle the various ways that a hwcap library can
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster# be present for libc_psr for sun4u.
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster # the string $HWCAP is not an env var but part of the argument to moe
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster LIBC_MOE_32=`/usr/bin/moe -32 /platform/$PLAT/lib/libc_psr/'$HWCAP'`
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster egrep -s "^/platform/$PLAT/lib/libc_psr.so.1 on "
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster if [ $? -ne 0 ]; then
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster egrep -s "^/platform/$ARCH/lib/libc_psr.so.1 on "
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster if [ $? -ne 0 ]; then
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk egrep -s "^/platform/$PLAT/lib/sparcv9/libc_psr.so.1 on "
73308f54e60e4cdb893e8b02955497e8f45b5893jeff.schenk if [ $? -ne 0 ]; then
egrep -s \
if [ $? -ne 0 ]; then
/usr/sbin/mount -O -F lofs $LIBC_MOE_64 \
if [ -h /platform/$PLAT/lib/libc_psr.so.1 ]; then
if smf_is_nonglobalzone; then
exit $SMF_EXIT_OK
if [ -n "$mountp" ]; then
echo $msg
exit $SMF_EXIT_ERR_FATAL
if [ "x$mntopts" = x- ]; then
# Also mount /boot now so that things like keymap.sh can access
if [ -n "$mountp" ]; then
# Update kernel driver.conf cache with any additional driver.conf
# files found on /usr, and device permissions from /etc/minor_perm.
exit $SMF_EXIT_OK