Home Home > GIT Browse > SLE15-SP1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-04-27 08:43:38 +0200
committerMichal Suchanek <msuchanek@suse.de>2018-04-27 08:45:27 +0200
commit6408562ef9d9c89bfa8f8452d3bf4cce42f7581e (patch)
tree5e6080864b331b5a7fb8c6e0009f9901df940622
parent5e830e8397050e2b02ab3283c42f54d5bd0ad72c (diff)
kernel-binary: only install modules.fips on modular kernels.rpm-4.12.14-18
-rw-r--r--rpm/kernel-binary.spec.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in
index 6222fd1a76..9fa4d2a3bd 100644
--- a/rpm/kernel-binary.spec.in
+++ b/rpm/kernel-binary.spec.in
@@ -843,8 +843,10 @@ for f in %my_builddir/*-kmp-modules; do
add_dirs_to_filelist "$f" >"$f2"
done
-install -m 644 %_sourcedir/modules.fips %{buildroot}/lib/modules/%kernelrelease-%build_flavor/modules.fips
-echo /lib/modules/%kernelrelease-%build_flavor/modules.fips >> %my_builddir/kernel-base.files
+if [ %CONFIG_MODULES = y ]; then
+ install -m 644 %_sourcedir/modules.fips %{buildroot}/lib/modules/%kernelrelease-%build_flavor/modules.fips
+ echo /lib/modules/%kernelrelease-%build_flavor/modules.fips >> %my_builddir/kernel-base.files
+fi
# Hardlink duplicate files automatically (from package fdupes): It doesn't save
# much, but it keeps rpmlint from breaking the package build. Note that we skip