FS#20092 - [kernel26] 2.6.34.1-1 calls depmod directly instead of /sbin/depmod

Attached to Project: Arch Linux
Opened by David Watzke (dwatzke) - Tuesday, 06 July 2010, 09:41 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 18 June 2011, 20:07 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: kernel26 2.6.34.1-1 calls depmod directly instead of /sbin/depmod

this causes an issue when you run pacman with sudo (and /sbin & /usr/sbin dirs are not in PATH; see http://bugs.archlinux.org/task/19967):

>>> Updating module dependencies. Please wait ...
/tmp/alpm_CWsiW6/.INSTALL: line 87: depmod: command not found

Steps to reproduce:

$ export PATH="~/bin:/usr/local/bin:/bin:/usr/bin"
$ sudo pacman -S kernel26
This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 18 June 2011, 20:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in svn trunk. I also fixed it for kernel26-lts.
Comment by Jelle van der Waa (jelly) - Thursday, 14 April 2011, 21:51 GMT
is the issue still around?
Comment by Eric Jacoboni (jaco) - Wednesday, 11 May 2011, 14:40 GMT
Same problem here while updating to 2.6.38.6-1

I had not /sbin in my user path and depmod have failed to run during installation

I had to run "depmod -a" manually to fix the problem (and i've now added /sbin to my PATH).
Comment by Kyle Keen (keenerd) - Saturday, 18 June 2011, 17:32 GMT
"Trivial fix" indeed.

sed -i 's|depmod|/sbin/depmod|' kernel26.install

Loading...