diff options
author | tuxoko <[email protected]> | 2015-11-19 17:42:41 -0800 |
---|---|---|
committer | Ned Bass <[email protected]> | 2015-12-23 17:29:34 -0800 |
commit | 13a9527913d29410f0a0b76624c8defbf69b862c (patch) | |
tree | 05f9c830be941017b09b0785f72fbe318e1567ce /module/Makefile.in | |
parent | 627b35a68de3b42acf6d3f92fdac1b344c96c020 (diff) |
Prevent rm modules.* when make install
This was originally in fe0ed8f910c1e4288dc190546cfe98ecf545b547, but somehow
was changed and not working anymore. And it will cause the following error:
modprobe: ERROR: ../libkmod/libkmod.c:506 lookup_builtin_file() could not open builtin file '/lib/modules/4.2.0-18-generic/modules.builtin.bin'
Signed-off-by: Chunwei Chen <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4027
Diffstat (limited to 'module/Makefile.in')
-rw-r--r-- | module/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/Makefile.in b/module/Makefile.in index e8d34c894..d4ddee2f4 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -47,7 +47,7 @@ modules_install: KERNELRELEASE=@LINUX_VERSION@ @# Remove extraneous build products when packaging kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@; \ - if [ -n $$kmoddir ]; then \ + if [ -n "$(DESTDIR)" ]; then \ find $$kmoddir -name 'modules.*' | xargs $(RM); \ fi sysmap=$(DESTDIR)$(INSTALL_MOD_PATH)/boot/System.map-@LINUX_VERSION@; \ |