kexec-tools.spec: remove kdump image when a corresponding kernel is removed.
Current kdump image name prefix has changed from initrd to initramfs. Tested on a vm running Fedora 18. Signed-off-by: WANG Chao <chaowang@redhat.com> Acked-by: Dave Young <dyoung@redhat.com> Acked-by: Baoquan He <bhe@redhat.com>
This commit is contained in:
parent
e9e10df925
commit
0f07159657
@ -275,9 +275,9 @@ else
|
||||
IMGDIR=/boot
|
||||
fi
|
||||
|
||||
for i in `ls $IMGDIR/initrd*kdump.img 2>/dev/null`
|
||||
for i in `ls $IMGDIR/initramfs*kdump.img 2>/dev/null`
|
||||
do
|
||||
KDVER=`echo $i | sed -e's/^.*initrd-//' -e's/kdump.*$//'`
|
||||
KDVER=`echo $i | sed -e's/^.*initramfs-//' -e's/kdump.*$//'`
|
||||
if [ ! -e $IMGDIR/vmlinuz-$KDVER ]
|
||||
then
|
||||
# We have found an initrd with no corresponding kernel
|
||||
|
Loading…
Reference in New Issue
Block a user