pkgcreatezone.sh revision 9a5d73e03cd3312ddb571a748c40a63c58bd66e5
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
m_brokenness=$(gettext "Postinstall: Working around http://defect.opensolaris.org/bz/show_bug.cgi?id=681")
print -u2 "$1"
}
print -u2 "$1"
exit $ZONE_SUBPROC_FATAL
}
print "Usage: $0 [-h] [-a <authority>]"
exit $ZONE_SUBPROC_USAGE
}
print "$f_interrupted"
exit $int_code
}
trap trap_cleanup INT
zonename=""
zonepath=""
#
# If there's a preferred authority set for the system, set that as our
# default. Otherwise use opensolaris.org.
#
fi
fi
# Setup i18n output
TEXTDOMAIN="SUNW_OST_OSCMD"
export TEXTDOMAIN
while getopts "a:z:R:h" opt; do
h) fail_usage ;;
*) fail_usage ;;
esac
done
print -u2 "Brand error: No zone path or name"
exit $ZONE_SUBPROC_USAGE
fi
#
# Temporary pre-Opensolaris hack:
# If we don't appear to be on Opensolaris, fallback to old way of
# zone install.
#
exit $?
fi
export PKG_IMAGE
if [[ $? -ne 0 ]]; then
print "Failed to retrieve catalog"
exit 1
fi
pkglist=""
#
# Workaround: in our test repo, SUNWipkg has no dependencies
# so we must supply it python.
#
#
# Get some diagnostic tools, truss, dtrace, etc.
#
#
# Get at least one sensible shell, and vi
#
#
# Get ssh and sshd.
#
#
# Get some name services.
#
#
# Get nfs client and autofs; it's a pain not to have them.
#
#
# Get opengl initialization
#
#
# Get D-Bus
#
#
# Get man(1) but not the man pages
#
# Do the install
# This was formerly done in SUNWcsr/postinstall
# This was formerly done in i.manifest
printf "$m_brokenness\n"
#
# Remove "jack" user.
#
#
# Set root from a role back to... not a role. Grr.
#
printf "$m_postnote\n"
exit $ZONE_SUBPROC_OK