def set_startup_disk(path):
 if (path not in list_startup_disks()):
  msg = 'Invalid value passed for path.\nMust be a valid startup disk as found in system.list_startup_disks.\nPassed: {0}'.format(path)
  raise SaltInvocationError(msg)
 cmd = 'systemsetup -setstartupdisk {0}'.format(path)
 salt.utils.mac_utils.execute_return_result(cmd)
 return salt.utils.mac_utils.confirm_updated(path, get_startup_disk)

def set_startup_disk ( path ) : if ( path not in list_startup_disks ( ) ) : msg = 'Invalid value passed for path.\nMust be a valid startup disk as found in system.list_startup_disks.\nPassed: {0}' . format ( path ) raise SaltInvocationError ( msg ) cmd = 'systemsetup -setstartupdisk {0}' . format ( path ) salt . utils . mac_utils . execute_return_result ( cmd ) return salt . utils . mac_utils . confirm_updated ( path , get_startup_disk )
set the current startup disk to the indicated path .