summaryrefslogtreecommitdiffstats
path: root/scripts/package
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-02-02 14:35:18 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2024-02-19 10:20:40 +0100
commitbca17edb24cb0e9ebc9269a77fc0a15f4b526f65 (patch)
treeb8b1f3a91976e9b39b1bd91eb299f0cac896acb7 /scripts/package
parentkbuild: rpm-pkg: do not include depmod-generated files (diff)
downloadlinux-bca17edb24cb0e9ebc9269a77fc0a15f4b526f65.tar.xz
linux-bca17edb24cb0e9ebc9269a77fc0a15f4b526f65.zip
kbuild: rpm-pkg: mark installed files in /boot as %ghost
Mark the files installed to /boot as %ghost to make sure they will be removed when the package is uninstalled. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Tested-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'scripts/package')
-rw-r--r--scripts/package/kernel.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec
index aaedb6d1b26f..ecedcfc11e73 100644
--- a/scripts/package/kernel.spec
+++ b/scripts/package/kernel.spec
@@ -77,6 +77,10 @@ ln -fns /usr/src/kernels/%{KERNELRELEASE} %{buildroot}/lib/modules/%{KERNELRELEA
echo "%ghost /lib/modules/%{KERNELRELEASE}/modules.${x}"
done
+ for x in System.map config vmlinuz; do
+ echo "%ghost /boot/${x}-%{KERNELRELEASE}"
+ done
+
echo "%exclude /lib/modules/%{KERNELRELEASE}/build"
} > %{buildroot}/kernel.list