jaunty: /sbin/lsmod moved to /bin/lsmod

Bug #340666 reported by Konstantin Khlebnikov
28
This bug affects 2 people
Affects Status Importance Assigned to Milestone
module-init-tools (Ubuntu)
Fix Released
Medium
Scott James Remnant (Canonical)

Bug Description

Binary package hint: module-init-tools

lsmod shuld be in /sbin, many scripts call it by full path.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

From the FHS:

"/bin contains commands that may be used by both the system administrator and by users, but which are
required when no other filesystems are mounted (e.g. in single user mode). It may also contain commands which are used indirectly by scripts"

"Utilities used for system administration (and other root-only commands) are stored in /sbin, /usr/sbin, and
/usr/local/sbin. /sbin contains binaries essential for booting, restoring, recovering, and/or repairing the
system in addition to the binaries in /bin."

So isn't lsmod in the correct directory now? I think the scripts you refer to should probably be fixed.

Revision history for this message
Konstantin Khlebnikov (khlebnikov) wrote :

lsmod always was there. it is wery painful change -- it broke many packages and third-party software.

in ubuntu: kvm, powernowd, apid, bash_completion. it is only quck check on installed on my pc packages. (rgrep /sbin/lsmod /etc)

Revision history for this message
marko daniel (marko-markodaniel) wrote :

Whether or not lsmod is now in the right place, the move has broken acpid and powernowd scripts. Either they should be fixed or module-init-tools.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This was a packaging error, upstream ship lsmod in /bin but we always had it in /sbin

Since both paths are valid and potentially hardcoded by scripts, we shall include a symlink from one to the other.

Changed in module-init-tools:
assignee: nobody → scott
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package module-init-tools - 3.7~pre7-4

---------------
module-init-tools (3.7~pre7-4) jaunty; urgency=low

  * debian/module-init-tools.links: Create an /sbin/lsmod symlink, that's
    always been the location in Debian/Ubuntu. We want to keep /bin/lsmod
    since that's the upstream location. LP: #340666.

 -- Scott James Remnant <email address hidden> Wed, 11 Mar 2009 09:32:59 +0000

Changed in module-init-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.