[Bug 776561] Re: Errors with insmod, modprobe, modinfo

Peter Cordes peter at cordes.ca
Sat Nov 29 12:50:04 UTC 2014


** Changed in: bash-completion (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/776561

Title:
  Errors with insmod, modprobe, modinfo

Status in bash-completion package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: bash-completion

  insmod, modprobe and modinfo are handled by one function: _insmod.
  There is a problem with this approach: the programs are completely
  different.

  insmod does not accept options like -x and --xxx, only modules or
  paths to modules.

  modprobe accepts several -x and --xxx options, these can not always be
  combined.

  modinfo acepts paths to modules or module names, the kernel version
  can be specified

  The following cases generate errors / unexpected behavior:
  $ insmod x x<tab>
  ERROR: modinfo: could not find module x
  $ modinfo x x<tab>
  ERROR: modinfo: could not find module x
  $ modprobe x x<tab>
  ERROR: modinfo: could not find module x
  $ modinfo -k 2.6.35-28-generic x<tab>
  /sbin/modinfo: option requires an argument -- 'k'
  Usage: /sbin/modinfo [-0][-F field][-k kernelversion][-b basedir]  module...
   Prints out the information about one or more module(s).
   If a fieldname is given, just print out that field (or nothing if not found).
   Otherwise, print all information out in a readable form
   If -0 is given, separate with nul, not newline.
   If -b is given, use an image of the module tree.

  The proposed patch fixes these issues (partially):
  - insmod: completely fixed
  - modprobe: arguments are incomplete (todo)
  - modinfo: completely fixed

  The patch can be added to the debian/patches/ directory directly after
  a review.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/776561/+subscriptions



More information about the foundations-bugs mailing list