394N/A# The contents of this file are subject to the terms of the 394N/A# Common Development and Distribution License (the "License"). 394N/A# You may not use this file except in compliance with the License. 394N/A# See the License for the specific language governing permissions 394N/A# and limitations under the License. 394N/A# When distributing Covered Code, include this CDDL HEADER in each 394N/A# If applicable, add the following below this CDDL HEADER, with the 394N/A# fields enclosed by brackets "[]" replaced with your own identifying 394N/A# information: Portions Copyright [yyyy] [name of copyright owner] 394N/A# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved. 394N/A# Copyright 2015 Nexenta Systems, Inc. All rights reserved. 394N/A# Make sure that the libraries essential to this stage of booting can be found. 844N/A # If there is an optimized libc available in /usr that fits this 394N/A # processor, mount it on top of the base libc. # Most of the operations in this script are only necessary in the global # zone but due to the way initialization scripts like this are packaged, # it needs to currently exist for all zones. # Root is already mounted (by the kernel), but still needs to be # checked, possibly remounted and entered into mnttab. First # mount /usr if it is a separate file system. If the file system # type is something other than zfs, mount it read-only. This must # be done first to allow utilities such as fsck and setmnt to # reside on /usr minimizing the space required by the root file # Must use -o largefiles here to ensure the # read-only mount does not fail as a result of # having a large file present on /usr. This gives # fsck a chance to fix up the largefiles flag # before we remount /usr read-write. # Requesting logging on a read-only mount # causes errors to be displayed, so remove # "logging" from the list of options for now. # The read-write mount performed later will # specify the logging option if appropriate. # if we are booted from zfs, the /usr mount probably won't be a # legacy mount. Use the standard zfs mount command instead. # if mountp = /usr, there is a non-legacy mount of /usr # in the boot environment being booted. # Also mount /boot now so that things like keymap.sh can access # boot properties through eeprom. Readonly isn't required because # /boot (and other pcfs filesystems) aren't fsck'ed at boot yet. # Also, we don't account for caching /boot as it must be on a local # disk. So what's in vfstab is fine as it stands; just look to see # if it's there and avoid the mount if not. # files found on /usr, and device permissions from /etc/minor_perm.