Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1351363 > unrolled thread

[PATCH trivial] scripts/prune-kernel: remove kdump images

Started byXiong Zhou <jencce.kernel@gmail.com>
First post2016-03-07 09:00 +0100
Last post2016-03-07 09:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH trivial] scripts/prune-kernel: remove kdump images Xiong Zhou <jencce.kernel@gmail.com> - 2016-03-07 09:00 +0100

#1351363 — [PATCH trivial] scripts/prune-kernel: remove kdump images

FromXiong Zhou <jencce.kernel@gmail.com>
Date2016-03-07 09:00 +0100
Subject[PATCH trivial] scripts/prune-kernel: remove kdump images
Message-ID<r9Yfa-8p8-45@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web