[Bug 776561] Re: Errors with insmod, modprobe, modinfo
Daniel Black
776561 at bugs.launchpad.net
Mon Jan 9 02:39:22 UTC 2012
added upstream:
https://alioth.debian.org/tracker/index.php?func=detail&aid=313498&group_id=100114&atid=413095
** Bug watch added: alioth.debian.org/ #313498
http://alioth.debian.org/support/tracker.php?aid=313498
--
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:
New
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