Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751539AbcD1FwW (ORCPT ); Thu, 28 Apr 2016 01:52:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45681 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbcD1FwV (ORCPT ); Thu, 28 Apr 2016 01:52:21 -0400 Date: Thu, 28 Apr 2016 13:52:17 +0800 From: Baoquan He To: Xiong Zhou Cc: "linux-kernel@vger.kernel.org" , Jiri Kosina Subject: Re: [PATCH trivial] scripts/prune-kernel: remove kdump images Message-ID: <20160428055217.GC3359@x1.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 23 On 03/07/16 at 03:56pm, Xiong Zhou wrote: > Signed-off-by: Xiong Zhou > --- > 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" It makes sense to remove kdump initramfs file if its related kernel and modules directory have been removed. I like this fix, maybe it's better to add at least one line of description to tell why it deserves removal. Thanks Baoquan