diff options
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/lib/brand/joyent/zone/platform.xml | 2 | ||||
-rw-r--r-- | usr/src/lib/brand/joyent/zone/statechange.ksh | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/lib/brand/joyent/zone/platform.xml b/usr/src/lib/brand/joyent/zone/platform.xml index 64b6048b45..7ef726ed90 100644 --- a/usr/src/lib/brand/joyent/zone/platform.xml +++ b/usr/src/lib/brand/joyent/zone/platform.xml @@ -49,6 +49,8 @@ opt="ro,nodevices" type="lofs" /> <global_mount special="%R/local" directory="/usr/local" opt="nodevices" type="lofs" /> + <global_mount special="%R/ccs" directory="/usr/ccs" + opt="nodevices" type="lofs" /> <!-- Local filesystems to mount when booting the zone --> <mount special="/proc" directory="/proc" type="proc" /> diff --git a/usr/src/lib/brand/joyent/zone/statechange.ksh b/usr/src/lib/brand/joyent/zone/statechange.ksh index e2896ddf7f..623b1f0207 100644 --- a/usr/src/lib/brand/joyent/zone/statechange.ksh +++ b/usr/src/lib/brand/joyent/zone/statechange.ksh @@ -253,6 +253,11 @@ setup_fs() [ ! -d $ZONEPATH/local ] && mkdir -m755 $ZONEPATH/local [ ! -d $ZONEPATH/root/checkpoints ] && \ mkdir -m755 $ZONEPATH/root/checkpoints + if [ ! -d $ZONEPATH/ccs ]; then + mkdir -m755 $ZONEPATH/ccs + (cd /usr/ccs; tar cbf 512 - *) | \ + (cd $ZONEPATH/ccs; tar xbf 512 -) + fi # Force zone snapshots to get mounted ls $ZONEPATH/.zfs/snapshot/* >/dev/null 2>&1 |