Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 426412

Summary: sys-fs/lvm2-2.02.95-r3: /usr/sbin/lvm2create_initrd: hardcoded path to /sbin/{insmod,modprobe,rmmod}
Product: Gentoo Linux Reporter: Samuli Suominen (RETIRED) <ssuominen>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED UPSTREAM    
Severity: normal CC: base-system, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 416223    

Description Samuli Suominen (RETIRED) gentoo-dev 2012-07-13 10:10:28 UTC
This is only a result of quick find and grep. This one file from lvm2 package is including hardcoded paths to some of the module-init-tools/kmod binaries.

This may, or may not be a problem. Please verify and close the bug accordingly.

/usr/sbin/lvm2create_initrd:    BINFILES="$BINFILES /sbin/modprobe /sbin/insmod /sbin/rmmod"

>=kmod-9-r1 installs to /usr/bin/
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-05-10 08:12:35 UTC
(In reply to comment #0)
> >=kmod-9-r1 installs to /usr/bin/

kmod is now installed to / instead of /usr but the symlinks in /sbin to /bin/kmod are only for backwards compability

as in, lvm2 shouldn't be hardcoding the paths in any case
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-09-12 20:54:29 UTC
I'll take this upstream. The package is fine in tree currently.