code: def load(mod, persist=False):
      '''
      Load the specified kernel module
  
      mod
          Name of module to add
  
      persist
          Write module to /etc/modules to make it load on system reboot
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' kmod.load kvm
      '''
      pre_mods = lsmod()
      res = __salt__['cmd.run_all']('modprobe {0}'.format(mod), python_shell=False)
      if res['retcode'] == 0:
          post_mods = lsmod()
          mods = _new_mods(pre_mods, post_mods)
          persist_mods = set()
          if persist:
              persist_mods = _set_persistent_module(mod)
          return sorted(list(mods | persist_mods))
      else:
          return 'Error loading module {0}: {1}'.format(mod, res['stderr']f load(mod, persist=False):
      '''
      Load the specified kernel module
  
      mod
          Name of module to add
  
      persist
          Write module to /etc/modules to make it load on system reboot
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' kmod.load kvm
      '''
      pre_mods = lsmod()
      res = __salt__['cmd.run_all']('modprobe {0}'.format(mod), python_shell=False)
      if res['retcode'] == 0:
          post_mods = lsmod()
          mods = _new_mods(pre_mods, post_mods)
          persist_mods = set()
          if persist:
              persist_mods = _set_persistent_module(mod)
          return sorted(list(mods | persist_mods))
      else:
          return 'Error loading module {0}: {1}'.format(mod, res['stderr'])
docs: Load the specified kernel module
  
      mod
          Name of module to add
  
      persist
          Write module to /etc/modules to make it load on system reboot
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' kmod.load kvm