Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1001000ybx; Wed, 6 Nov 2019 11:34:49 -0800 (PST) X-Google-Smtp-Source: APXvYqx9+2LafX2EkBQ3eK/IWWaEHvY0bu5PzkHWpwoC069TXTH9DVFKLm5tMRji/fzNXc3DmrWB X-Received: by 2002:a17:907:216e:: with SMTP id rl14mr24383030ejb.291.1573068888998; Wed, 06 Nov 2019 11:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573068888; cv=none; d=google.com; s=arc-20160816; b=qfln8HztI5+Cye9NpQEaMn3mLSYJJO38fWRZdxklHwi65X4L0zQxhrjKBbcXLRWKA0 32WRUj+lInB7Sjs/cpwv9xBGIwkZt9qZ+x4Wr9edb67XUUuxehF6Y4HjnXlVPE8HpR3Q UMr/7T/wSygG+9CoJDeSNTT7OU4fUQBzFYZII3PtPjjtGDi1SjyVncPS0vslM3dLPF9J LO/InPBL+Cm3jHRoP5YFSbsrvkThgsDmGcLaC1wJLeWdbSpUfujReoBKxpTUXOhSfaXZ Vg8gpqho0Xf6YFqjEjVLieElMIRMwvwx2K45T/GxVzRzXirgp2vVHwWDu+xv5xUFacOW 8v0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=P9c8/XFWXdQtAWw88706eG+I9j+ceePK/8ZMEn0NA4k=; b=LksgOLFq540S2VITpCvh7WV4dsR8P0WJVIGTvq69idMe//YrxBJyhNM4rc6KKLNLJq cNrTq6NWYEEihlIXVDxO0au4cJDF8W1tzLSXWmsiiY1+0OsZvO9FEtod86t4KFtScSPR Zg77PMf4oaQCaZv/yZf2feAw3k1nxjHALOYrQfzQIYw5dVIudaybEaMNJjkwSzb0MOou 3SYbYYUmqyxZIbuKrEERKFUH0vYHqvoeqTg1c60qpAAF6o9NOr/n/1CNO4BH46GwS9E/ Akl25QnjeWjhOZ9o2vml5JUZdGcB7gARVLr8gX2E23miG3/UHerZoxn8KGRxjDHRhuzw HXiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si14518118ejh.275.2019.11.06.11.34.23; Wed, 06 Nov 2019 11:34:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727538AbfKFTaK (ORCPT + 99 others); Wed, 6 Nov 2019 14:30:10 -0500 Received: from fieldses.org ([173.255.197.46]:34206 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfKFTaK (ORCPT ); Wed, 6 Nov 2019 14:30:10 -0500 Received: by fieldses.org (Postfix, from userid 2815) id 5443E1BE7; Wed, 6 Nov 2019 14:30:10 -0500 (EST) Date: Wed, 6 Nov 2019 14:30:10 -0500 From: "J. Bruce Fields" To: Bhaskar Chowdhury Cc: Masahiro Yamada , Randy Dunlap , 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: <20191106193010.GG17669@fieldses.org> References: <20191102063036.28601-1-unixbhaskar@gmail.com> <50680c37-9e85-0050-c1e1-700260a0471c@infradead.org> <20191105023243.GA16635@fieldses.org> <20191106043120.GB6355@fieldses.org> <20191106044223.GA18076@Gentoo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191106044223.GA18076@Gentoo> 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 10:12:26AM +0530, Bhaskar Chowdhury wrote: > On 23:31 Tue 05 Nov 2019, J. Bruce Fields wrote: > >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. > > Bruce, > > Two things, > > If the system doesn't run grub , how the fallback policy??? > > This binary "new-kernel-pkg" also missing in other systems too...I can > confirm that... i.e gentoo,slackware, > > So , you are only targeting the rpm based system???? It's just what I happen to use. If someone wants to make it work elsewhere that'd be great, as long as we don't break what already works. I think Debian uses grub2-mkconfig? Might be OK for Fedora too, I dunno. --b.