def boot(zone, single=False, altinit=None, smf_options=None):
 ret = {'status': True}
 boot_options = ''
 if single:
  boot_options = '-s {0}'.format(boot_options)
 if altinit:
  boot_options = '-i {0} {1}'.format(altinit, boot_options)
 if smf_options:
  boot_options = '-m {0} {1}'.format(smf_options, boot_options)
 if (boot_options != ''):
  boot_options = ' -- {0}'.format(boot_options.strip())
 res = __salt__['cmd.run_all']('zoneadm {zone} boot{boot_opts}'.format(zone=('-u {0}'.format(zone) if _is_uuid(zone) else '-z {0}'.format(zone)), boot_opts=boot_options))
 ret['status'] = (res['retcode'] == 0)
 ret['message'] = (res['stdout'] if ret['status'] else res['stderr'])
 ret['message'] = ret['message'].replace('zoneadm: ', '')
 if (ret['message'] == ''):
  del ret['message']
 return ret

def boot ( zone , single = False , altinit = None , smf_options = None ) : ret = { 'status' : True } boot_options = '' if single : boot_options = '-s {0}' . format ( boot_options ) if altinit : boot_options = '-i {0} {1}' . format ( altinit , boot_options ) if smf_options : boot_options = '-m {0} {1}' . format ( smf_options , boot_options ) if ( boot_options != '' ) : boot_options = ' -- {0}' . format ( boot_options . strip ( ) ) res = __salt__ [ 'cmd.run_all' ] ( 'zoneadm {zone} boot{boot_opts}' . format ( zone = ( '-u {0}' . format ( zone ) if _is_uuid ( zone ) else '-z {0}' . format ( zone ) ) , boot_opts = boot_options ) ) ret [ 'status' ] = ( res [ 'retcode' ] == 0 ) ret [ 'message' ] = ( res [ 'stdout' ] if ret [ 'status' ] else res [ 'stderr' ] ) ret [ 'message' ] = ret [ 'message' ] . replace ( 'zoneadm: ' , '' ) if ( ret [ 'message' ] == '' ) : del ret [ 'message' ] return ret
boot the specified zone .