lkml.org 
[lkml]   [2016]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH trivial] scripts/prune-kernel: remove kdump images
From
Signed-off-by: Xiong Zhou <jencce.kernel@gmail.com>
---
scripts/prune-kernel | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/prune-kernel b/scripts/prune-kernel
index ab5034e..9c67be2 100755
--- a/scripts/prune-kernel
+++ b/scripts/prune-kernel
@@ -14,7 +14,7 @@ do
echo "removing $f"
rm -f "/boot/initramfs-$f.img" "/boot/System.map-$f"
rm -f "/boot/vmlinuz-$f" "/boot/config-$f"
- rm -rf "/lib/modules/$f"
+ rm -rf "/lib/modules/$f" "/boot/initramfs-${f}kdump.img"
new-kernel-pkg --remove $f
fi
done
--
2.5.0
\
 
 \ /
  Last update: 2016-03-07 09:21    [W:0.041 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site