2N/A# The contents of this file are subject to the terms of the 2N/A# Common Development and Distribution License (the "License"). 2N/A# You may not use this file except in compliance with the License. 2N/A# See the License for the specific language governing permissions 2N/A# and limitations under the License. 2N/A# When distributing Covered Code, include this CDDL HEADER in each 2N/A# If applicable, add the following below this CDDL HEADER, with the 2N/A# fields enclosed by brackets "[]" replaced with your own identifying 2N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2N/A# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. 2N/Am_usage=
$(gettext "clone [-c profile.xml | dir] {sourcezone}\n\tThe -c option gives a profile or a directory of profiles to be applied to the system after clone.") 2N/A# Clean up on failure 2N/A # unmount the zoneroot if labeled brand 2N/A # Remove datasets that shouldn't exist 2N/A# Source and destination zones 2N/A# Other brand clone options are invalid for this brand. 2N/Awhile getopts "R:z:c:x:" opt;
do 2N/A x) ;;
# zoneadm only 2N/A# Configuration profile file must have .xml suffix 2N/A# From here on out the global variables referenced are for the destination zone 2N/A# Make dataset snapshots 2N/A# Make dataset clones. This sets EXIT_CODE if datasets created. 2N/A# Completion of reconfigure_zone will leave the zone root mounted for 2N/A# solaris brand zones. The root won't be mounted for labeled brand zones.