Is there a reason the hardware optimized libraries shouldn't be mounted in a local zone?

In the local zone, they are 0 byte files:

bash-3.00# ls -l /platform/sun4u-us3/lib/libc_psr.so.1
-rwxr-xr-x 1 root bin 0 May 25 09:35 /platform/sun4u-us3/lib/libc_psr.so.1

even though looking at the local zones path from the global zone shows the files as they should be:

bash-3.00# ls -l /oracle/zones/cvs/root//platform/sun4u-us3/lib/libc_psr.so.1 -rwxr-xr-x 1 root bin 6624 May 31 15:10 /oracle/zones/cvs/root//platform/sun4u-us3/lib/libc_psr.so.1


The loopback mount appears to come from the svc:/system/filesystem/root:default service which is actually the
script /lib/svc/method/fs-root. That script has an early exit
section if it is being run in a local zone:

/lib/svc/method/fs-root:
if [ "${_INIT_ZONENAME:=`/sbin/zonename`}" != "global" ]; then
        libc_mount
        exit 0
fi

... presumably to prevent rerunning of the kernel section (devfsadm), and remounting of /usr and root. Unfortunately, this section is at
the end and also doesn't get run in a local zone:

PLAT=`/usr/bin/uname -i`
ARCH=`/usr/bin/uname -m`
if [ "$ARCH" = "sun4v" ]; then
        sun4v_libc_psr_mount
elif [ "$ARCH" = "sun4u" ]; then
        if [ -h /platform/$PLAT/lib/libc_psr.so.1 ]; then
LINKSTO=`/usr/bin/ls -l /platform/$PLAT/lib/libc_psr.so.1 |
                        /usr/bin/awk '{print $NF}'`
if [ "$LINKSTO" = "../../sun4u-us3/lib/libc_psr.so.1" ]; then
                        ARCH=sun4u-us3
                fi
        fi
                sun4u_libc_psr_mount
fi

That section mounts the "hardware optimized C library", which I think should also be mounted in the local zone?

--

       _/_/_/  _/    _/  _/     _/    Bill Casale - TSE
      _/      _/    _/  _/_/   _/          OS Team
     _/_/_/  _/    _/  _/  _/ _/      1 Network Drive
        _/  _/    _/  _/   _/_/     Burlington, MA. 01802
   _/_/_/   _/_/_/   _/     _/                                                  
                        
M  I  C  R  O  S  Y  S  T  E  M  S


_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to