fs-root (1342:f161862f9539) fs-root (1573:7338e65f2666)
1#!/sbin/sh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
1#!/sbin/sh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License, Version 1.0 only
7# (the "License"). You may not use this file except in compliance
8# with the License.
6# Common Development and Distribution License (the "License").
7# You may not use this file except in compliance with the License.
9#
10# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11# or http://www.opensolaris.org/os/licensing.
12# See the License for the specific language governing permissions
13# and limitations under the License.
14#
15# When distributing Covered Code, include this CDDL HEADER in each
16# file and include the License file at usr/src/OPENSOLARIS.LICENSE.

--- 106 unchanged lines hidden (view full) ---

123 if [ $? -ne 0 ]; then
124 /usr/sbin/mount -O -F lofs $LIBC_MOE_64 \
125 /platform/$ARCH/lib/sparcv9/libc_psr.so.1
126 fi
127 fi
128 fi
129}
130
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.

--- 106 unchanged lines hidden (view full) ---

122 if [ $? -ne 0 ]; then
123 /usr/sbin/mount -O -F lofs $LIBC_MOE_64 \
124 /platform/$ARCH/lib/sparcv9/libc_psr.so.1
125 fi
126 fi
127 fi
128}
129
130. /lib/svc/share/smf_include.sh
131. /lib/svc/share/fs_include.sh
132
131#
132# Most of the operations in this script are only necessary in the global
133# zone but due to the way initialization scripts like this are packaged,
134# it needs to currently exist for all zones.
135#
133#
134# Most of the operations in this script are only necessary in the global
135# zone but due to the way initialization scripts like this are packaged,
136# it needs to currently exist for all zones.
137#
136if [ "${_INIT_ZONENAME:=`/sbin/zonename`}" != "global" ]; then
138if smf_is_nonglobalzone; then
137 libc_mount
139 libc_mount
138 exit 0
140 exit $SMF_EXIT_OK
139fi
140
141fi
142
141. /lib/svc/share/smf_include.sh
142. /lib/svc/share/fs_include.sh
143
144#
145# Root is already mounted (by the kernel), but still needs to be
146# checked, possibly remounted and entered into mnttab. First
147# mount /usr read only if it is a separate file system. This must
148# be done first to allow utilities such as fsck and setmnt to
149# reside on /usr minimizing the space required by the root file
150# system.
151#

--- 100 unchanged lines hidden (view full) ---

252 /usr/bin/awk '{print $NF}'`
253 if [ "$LINKSTO" = "../../sun4u-us3/lib/libc_psr.so.1" ]; then
254 ARCH=sun4u-us3
255 fi
256 fi
257 sun4u_libc_psr_mount
258fi
259
143#
144# Root is already mounted (by the kernel), but still needs to be
145# checked, possibly remounted and entered into mnttab. First
146# mount /usr read only if it is a separate file system. This must
147# be done first to allow utilities such as fsck and setmnt to
148# reside on /usr minimizing the space required by the root file
149# system.
150#

--- 100 unchanged lines hidden (view full) ---

251 /usr/bin/awk '{print $NF}'`
252 if [ "$LINKSTO" = "../../sun4u-us3/lib/libc_psr.so.1" ]; then
253 ARCH=sun4u-us3
254 fi
255 fi
256 sun4u_libc_psr_mount
257fi
258
260exit 0
259exit $SMF_EXIT_OK