Refer to bootstrap template provided in the Joyent Wiki for smartos
bootstrap