Skip to content

Commit

Permalink
Make Gentoo initscript use modinfo
Browse files Browse the repository at this point in the history
The -l parameter to modprobe has been removed from the latest upstream
code and this change has entered Gentoo. Using modinfo as a substitute
addresses this.

Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#636
  • Loading branch information
ryao authored and behlendorf committed Apr 3, 2012
1 parent 847de12 commit 2ce9d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/init.d/zfs.gentoo.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ZFS_MODULE=zfs
checksystem() {
if [ ! -c /dev/zfs ]; then
einfo "Checking if ZFS modules present"
if [ "x$(modprobe -l $ZFS_MODULE | grep $ZFS_MODULE)" == "x" ]; then
if ! modinfo zfs > /dev/null 2>&1 ; then
eerror "$ZFS_MODULE not found. Is the ZFS package installed?"
return 1
fi
Expand Down

0 comments on commit 2ce9d0e

Please sign in to comment.