From 8fca6a536dc70903a29f4ead0f2c81132810bfec Mon Sep 17 00:00:00 2001 From: Evgenii Shatokhin Date: Mon, 13 Mar 2017 18:10:33 +0300 Subject: [PATCH] Remove kdump-specific initrd images when the kernel is uninstalled --- kernel.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index 1a3d4c5..fb98eab 100644 --- a/kernel.spec +++ b/kernel.spec @@ -871,7 +871,7 @@ done # uninstalled, initrd has been regenerated for the given kernel. However, # the kernel itself might have been uninstalled before, so that (defunct) # initrd image files would be left behind. Remove them if the kernel itself -# is no longer installed. Should work if they are ininstalled in parallel +# is no longer installed. Should work if they are uninstalled in parallel # too. if ! test -f /boot/vmlinuz-${KernelVer}; then rm -f /boot/initrd-${KernelVer}.img @@ -998,6 +998,9 @@ EOF cat > $kernel_files-postun <