Following from a conversation with zander on #opensolaris, I'm attaching some 
scripts that we use for creating jails on our build machines.

These scripts are very much tailored for use in the Dublin network so 
references to /sgnome and /scde will be of no use to anyone else, but the 
concept and other aspects of the scripts might be.
To keep the scripts in sync with what we have in cvs, I haven't changed 
anything.

The scripts are currently being rewritten to remove such Dublin-centric code 
but zander needs a solution now ;) 

You will need to have your OS packages handy as the script will reference them.

Use 'make-solaris-jail' to create a jail in the specified dir
# make-solaris-jail -os /path/to/os/packages --user uid /path/to/jail

'open-jail' simply mounts the mount points. Use if after rebooting the machine.
'remove-jail' unmounts the mount points and rm -rf the jail directory.

If you have questions let me know and I'll try to help.
--
This message posted from opensolaris.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-solaris-jail
Type: application/octet-stream
Size: 18023 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/desktop-discuss/attachments/20060321/e57545bf/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: open-jail
Type: application/octet-stream
Size: 2261 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/desktop-discuss/attachments/20060321/e57545bf/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-jail
Type: application/octet-stream
Size: 1623 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/desktop-discuss/attachments/20060321/e57545bf/attachment-0002.obj>

Reply via email to