equal
deleted
inserted
replaced
16 # If applicable, add the following below this CDDL HEADER, with the |
16 # If applicable, add the following below this CDDL HEADER, with the |
17 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # fields enclosed by brackets "[]" replaced with your own identifying |
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # information: Portions Copyright [yyyy] [name of copyright owner] |
19 # |
19 # |
20 # CDDL HEADER END |
20 # CDDL HEADER END |
21 # |
|
22 |
21 |
23 # |
22 # |
24 # Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. |
25 # |
24 # |
26 |
25 |
27 . /usr/lib/brand/ipkg/common.ksh |
26 . /usr/lib/brand/ipkg/common.ksh |
28 |
27 |
29 # States |
28 # States |
46 ZONEPATH=$2 |
45 ZONEPATH=$2 |
47 state=$3 |
46 state=$3 |
48 cmd=$4 |
47 cmd=$4 |
49 ALTROOT=$5 |
48 ALTROOT=$5 |
50 |
49 |
51 typeset zone |
|
52 init_zone zone "$ZONENAME" "$ZONEPATH" |
|
53 eval $(bind_legacy_zone_globals zone) |
|
54 |
|
55 # If we're not readying the zone, then just return. |
50 # If we're not readying the zone, then just return. |
56 case $cmd in |
51 if [ $cmd -eq 0 ]; then |
57 0) |
52 # Mount active dataset on the root. |
58 mount_active_be zone || exit $ZONE_SUBPROC_NOTCOMPLETE |
53 mount_active_ds |
59 ;; |
54 fi |
60 esac |
|
61 |
55 |
62 exit $ZONE_SUBPROC_OK |
56 exit $ZONE_SUBPROC_OK |