[zfs-discuss] Correct location for kernel modules?

covici at ccs.covici.com covici at ccs.covici.com
Thu Jan 14 13:58:23 EST 2016


John Allen via zfs-discuss <zfs-discuss at list.zfsonlinux.org> wrote:

> I've been experimenting with different ways to update manually ZoL to
> 0.6.5.4 on a machine running Debian testing. The manual update is
> interesting because it seems that Debian testing is not currently supported
> by the normal ZoL packaging for Debian (
> https://github.com/zfsonlinux/pkg-zfs/issues/160).
> 
> I first tried the guidance on building generic DEBs (
> http://zfsonlinux.org/generic-deb.html), using the KMOD approach and
> pulling the source directly from Github. In this case, the kernel modules
> ended up installed to a hierarchy of directories like this:
> 
> zfs : /lib/modules/4.3.0-1-amd64/extra/zfs/zfs/zfs.ko
> spl : /lib/modules/4.3.0-1-amd64/extra/spl/spl/spl.ko
> 
> and the other 6 modules related to zfs (avl, nvpair, zcommon, splat,
> unicode, zpios) were installed in separate directories under
> /lib/modules/4.3.0-1-amd64/extra/zfs/ or
> /lib/modules/4.3.0-1-amd64/extra/spl
> 
> eg
> zcommon : /lib/modules/4.3.0-1-amd64/extra/zfs/zcommon/zcommon.ko
> 
> Everything seemed to be working fine.
> 
> As I was still interested to figure out how to use DKMS in future, and just
> for my own education, I then tested running in the spl and zfs source
> directories a simple
> 
> ./configure
> make
> make install
> 
> to see what would happen.
> 
> In this case the kernel modules have been installed to different locations:
> 
> zfs : /lib/modules/4.3.0-1-amd64/extra/zfs/zfs.ko
> spl : /lib/modules/4.3.0-1-amd64/extra/spl/spl.ko
> 
> and the other 6 modules have been installed in their own directories
> directly under .../extra/,
> 
> eg
> zcommon : /lib/modules/4.3.0-1-amd64/extra/zcommon/zcommon.ko
> 
> My questions are:
> - which of these directory hierarchies is correct for ZoL in Debian?
> - why do the 2 approaches (generic DEBs, direct compilation) give different
> results?
> 
> Thanks for any insights.

I would like to get this going on Debian stretch, could you give me your
steps?
Thanks.


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici at ccs.covici.com


More information about the zfs-discuss mailing list