def set_boot_arch(arch='default'):
 if (arch not in ['i386', 'x86_64', 'default']):
  msg = 'Invalid value passed for arch.\nMust be i386, x86_64, or default.\nPassed: {0}'.format(arch)
  raise SaltInvocationError(msg)
 cmd = 'systemsetup -setkernelbootarchitecture {0}'.format(arch)
 salt.utils.mac_utils.execute_return_success(cmd)
 return salt.utils.mac_utils.confirm_updated(arch, get_boot_arch)

def set_boot_arch ( arch = 'default' ) : if ( arch not in [ 'i386' , 'x86_64' , 'default' ] ) : msg = 'Invalid value passed for arch.\nMust be i386, x86_64, or default.\nPassed: {0}' . format ( arch ) raise SaltInvocationError ( msg ) cmd = 'systemsetup -setkernelbootarchitecture {0}' . format ( arch ) salt . utils . mac_utils . execute_return_success ( cmd ) return salt . utils . mac_utils . confirm_updated ( arch , get_boot_arch )
set the kernel to boot in 32 or 64 bit mode on next boot .