diff options
author | jerry <jerry@opensolaris.(none)> | 2010-12-14 15:16:21 -0700 |
---|---|---|
committer | jerry <jerry@opensolaris.(none)> | 2010-12-14 15:16:21 -0700 |
commit | 6db26347639ba9921ab6dd51e0295d4918a1f415 (patch) | |
tree | 9862359afe4279e6f3e83156eb71034e62d984e0 /usr | |
parent | 6813eba72e5f115da4ca56d9a81c086217987fa5 (diff) | |
download | illumos-joyent-6db26347639ba9921ab6dd51e0295d4918a1f415.tar.gz |
OS-49 add support for swap to live image
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/cmd/svc/milestone/fs-minimal | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/cmd/svc/milestone/fs-minimal b/usr/src/cmd/svc/milestone/fs-minimal index c35187390e..53008ac08d 100644 --- a/usr/src/cmd/svc/milestone/fs-minimal +++ b/usr/src/cmd/svc/milestone/fs-minimal @@ -45,6 +45,7 @@ if [ "$fstype" = zfs ] ; then fi # Joyent additions +JOYSWAP=/dev/zvol/dsk/zones/swap # Need to run syseventd now because it talks to devfs to create /dev/dsk # so that we can try to import the zpool. @@ -57,6 +58,7 @@ if [ $? -eq 0 ]; then mount -F zfs zones/config /etc/zones mount -F zfs zones/opt /opt dumpadm -y -d /dev/zvol/dsk/zones/dump + [ -b $JOYSWAP ] && swap -a $JOYSWAP fi # End Joyent additions |