From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 170E9C5DF62 for ; Wed, 6 Nov 2019 04:31:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BE45F2075C for ; Wed, 6 Nov 2019 04:31:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731235AbfKFEbV (ORCPT ); Tue, 5 Nov 2019 23:31:21 -0500 Received: from fieldses.org ([173.255.197.46]:33414 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbfKFEbU (ORCPT ); Tue, 5 Nov 2019 23:31:20 -0500 Received: by fieldses.org (Postfix, from userid 2815) id 661EB1C19; Tue, 5 Nov 2019 23:31:20 -0500 (EST) Date: Tue, 5 Nov 2019 23:31:20 -0500 From: "J. Bruce Fields" To: Masahiro Yamada Cc: Randy Dunlap , Bhaskar Chowdhury , Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List Subject: Re: [PATCH] scripts:prune-kernel:remove old kernels and modules dir from system Message-ID: <20191106043120.GB6355@fieldses.org> References: <20191102063036.28601-1-unixbhaskar@gmail.com> <50680c37-9e85-0050-c1e1-700260a0471c@infradead.org> <20191105023243.GA16635@fieldses.org> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 06, 2019 at 11:53:28AM +0900, Masahiro Yamada wrote: > BTW. > Bruce, > Does the current script expect RHEL or something? > I do not see 'new-kernel-pkg' on my Ubuntu machine. I test on Fedora. Looks like on recent Fedora that's only provided by an rpm "grubby-deprecated", which is an inauspicious name.... I think maybe you're supposed to use "grubby" itself now. Do you have that? > It would still work with 'new-kernel-pkg: command not found' > warning. > > We could bypass it if we like. > > command -v new-kernel-pkg && new-kernel-pkg --remove $f Looks like it's what updates the grub configuration, which is probably a nice thing to do if you can. --b.