From: Masahiro Yamada Date: Fri, 2 Feb 2024 13:35:18 +0000 (+0900) Subject: kbuild: rpm-pkg: mark installed files in /boot as %ghost X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bca17edb24cb0e9ebc9269a77fc0a15f4b526f65;p=people%2Faperard%2Flinux.git 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 Tested-by: Nathan Chancellor --- diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index aaedb6d1b26fa..ecedcfc11e737 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