From: Alexander Pyhalov Date: Tue, 28 Oct 2014 16:48:50 +0000 (-0700) Subject: Fix modules installation directory X-Git-Tag: zfs-0.8.0-rc1~152^2~205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f4a13c49709ab4bc6abb6b3159be77ce168a5e0;p=zfs Fix modules installation directory When building zfs modules with kernel, compiled from deb.src, the packaging process ends up installing the modules in the wrong place. Signed-off-by: Alexander Pyhalov Signed-off-by: Brian Behlendorf Closes zfsonlinux/zfs#2822 --- diff --git a/module/Makefile.in b/module/Makefile.in index 49bdaa808..41c10101e 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -22,7 +22,8 @@ modules_install: @# Install the kernel modules $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` $@ \ INSTALL_MOD_PATH=$(DESTDIR)$(INSTALL_MOD_PATH) \ - INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) + INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \ + KERNELRELEASE=@LINUX_VERSION@ @# Remove extraneous build products when packaging kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@; \ if [ -n $$kmoddir ]; then \