From bb9d808c5a942111addef033bd50bff86d1a5cc7 Mon Sep 17 00:00:00 2001 From: Alexander Pyhalov Date: Wed, 22 Oct 2014 22:02:45 +0400 Subject: [PATCH] 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 #2822 --- module/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/Makefile.in b/module/Makefile.in index 4c6d38168149..686402b1fc4c 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -43,7 +43,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 \