Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp149994ybx; Wed, 6 Nov 2019 14:42:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzuC8N7Bz4jtn2U1ggJqXRvs24qt8uQCCVHe6u6shHxnruSxSSaBPshbCtnJbNIEbTF149y X-Received: by 2002:a17:906:f91:: with SMTP id q17mr31801ejj.113.1573080179171; Wed, 06 Nov 2019 14:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573080179; cv=none; d=google.com; s=arc-20160816; b=udR3eUmfO8ABXYJzbZiLPJ17siJOx7N3exQeUuFgoRgPkLpxO85I301BkDrY6Geupw /vknf7Z3Y9HkPcaLKAf5ilfJp+7eK2YPdx2Stub2egx/dfh+JcRrPxllD/Ak7k7m2GMS cbzcBlBC21/SsUMv8LLTfnw5SoJeC1aST2Xr+pTY4Vvq2mX9inygkzJSXq6s+wuYqJto aPl/q1fpgzOujYijnXDLOo1wVR6iRP5eiRzrXPea7E0Rx8G5iCO5DmPhauI7XuvtBgBD b/itqfXj/We55yptvJW8LSiP4sHoiIuAaDLLgIHIFyuQ20i34PVb0423hwIiWnr1nFH8 hNSQ== 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:dkim-signature; bh=BMKd8G9zMkgN0f5Y0tqmmKfixfcWLZBRkofJy97iGiI=; b=zkBum46F/uMRckoU+62XtEG1CUxb5kODhXklCGubTVG3ta4VCM2G8bbSQw6Vi0hl6l PPkiI+vf2aH4O4RdVGwAsRBt3ZphJn/uK+dgPcMUYBxuN/x1bX6nRACDZZ/GcPAOT1Z2 h6pFvo2zRceXNS2NT1WzHmzKj+4p2d1a8ff9skzMqGeEq3eXAQDztJfkP1WpXFIzE7EH XEWvYvdRE5/409uhX+YD5irwofKQdR5X3y9ZdFuk3XekDQRR547RyL85he4LDx3Dg0OA 7FJwpJ6zkmeLWUiuWccv+XP3/1wEQlikvjIpiTOqYhjH9C8Ez/7NarJ9H0oLzwNarKP8 p8gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oincruMT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si176171ejv.278.2019.11.06.14.42.33; Wed, 06 Nov 2019 14:42:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oincruMT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732411AbfKFWjf (ORCPT + 99 others); Wed, 6 Nov 2019 17:39:35 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:36711 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727196AbfKFWjf (ORCPT ); Wed, 6 Nov 2019 17:39:35 -0500 Received: by mail-pl1-f194.google.com with SMTP id g9so12194389plp.3; Wed, 06 Nov 2019 14:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BMKd8G9zMkgN0f5Y0tqmmKfixfcWLZBRkofJy97iGiI=; b=oincruMTn5V9mTz+UjSpw6gCAfrjxD3rHfFUb7+yDs1GwMQc7x76PTRZ3NZep2zds0 8qMS96GOZIWuWyJDvASCfP6Ljs9u0R4qa50TWVF291ejwe8hCO2iS80we91/vnh6z+9H zJCV18tbb53WlYkS7BwPMpLKki+h088raFgCUwxwusQu3CE3rfMhzoeZ81LNzu3u9kwd r0ptc6c5MY1grztnZrpIj0nrBUgy79Bcv4xbWadetoC8snyyolC6OcBeHr06lKodLD9t 42mvfWTxvfiC6LNuBHzPyJapxy238EgOaeHhZdshYdtbQJYBlrONgriFDtUkPwK2zPMW 6spg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BMKd8G9zMkgN0f5Y0tqmmKfixfcWLZBRkofJy97iGiI=; b=CO3w/j1XabNst3jqpUANF8TSHAvJofRKrKqvslb4rYB+Hebd5POlTQFv3XAnSkSfDU cjzWPvfEATntx3vDKVHnEyoV0UfyuN5nuefHm+g3mC/pAd9BPWtbRz2nrYEnxoy3EU9s YyXdWHdQP1zRaNY2gmyTPb9KLIVi5wVvxC2FcbCZo0FLn0ZSvV5jU+JMXVnGJnN58Kwt IEWbnGPeFV7tpGn3IVVXCaRboVmNK9zjB8k3nfYKD41ydjx0WPuf3W1TKS4yVCFBkDdH 7vh1vQG3f/oUFnVPVLoMtf6reUdwuS4U9jxPn8zFjcRpGSPVL/awMtGaQaNuz2gGgQrK cZJg== X-Gm-Message-State: APjAAAWiFZ9GgDqpKnkblpp/Lf0Qhry4XASyUc5lTdnrWSQ7K/iXZflT Ys0aQegHm9I4a3Farr53to2XFakvjTE= X-Received: by 2002:a17:902:346:: with SMTP id 64mr18408pld.283.1573079973779; Wed, 06 Nov 2019 14:39:33 -0800 (PST) Received: from Slackware ([103.231.90.174]) by smtp.gmail.com with ESMTPSA id k32sm4766756pje.10.2019.11.06.14.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2019 14:39:32 -0800 (PST) Date: Thu, 7 Nov 2019 04:09:18 +0530 From: Bhaskar Chowdhury To: "J. Bruce Fields" 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: <20191106223918.GB1852@Slackware> 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> <20191106193010.GG17669@fieldses.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uZ3hkaAS1mZxFaxD" Content-Disposition: inline In-Reply-To: <20191106193010.GG17669@fieldses.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uZ3hkaAS1mZxFaxD Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 14:30 Wed 06 Nov 2019, J. Bruce Fields wrote: >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. >>=20 >> Bruce, >>=20 >> Two things, >>=20 >> If the system doesn't run grub , how the fallback policy??? >>=20 >> This binary "new-kernel-pkg" also missing in other systems too...I can >> confirm that... i.e gentoo,slackware, >>=20 >> 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. Okay , thanks for the input. I was trying to write something in generalize way , that is why my code spins off.And if you see the subject line of my very first attempt to patch written was "removing old kernels and modules dir in selective way"... that was it. Now, there are plenty of distros around, not only rpm based one(yes I do agree that ,you wrote it while using and testing on it, but that is limited in nature),the broader user base might be using something else. we simply can not restrict it to certain packaging version or several packaging versions of selected distros. We are making and building this (worth an effort) to make it as generalized as possible.=20 Importantly I was only thinking of people who put the stuff in standard places in the FSH and use it. I might be wrong. As I have said it before, I was no way trying to bypass your work ,but it seems very limited in nature to adopted. So trying to widen the spectrum. I am trying to incorporating both the pole, different kind user base in mind, like you , who don't like to be prompted for this operation and assuming things should go well, and you are right. On the other hand , I am kinda guy , sometime I need to know what is going on, so the prompting.=20 Well, I have never taken into account about modifying the bootloader config by looking at your work. Had I been, I would have done it already and it would be extremely trivial in nature. Now, Grub, no doubt it's fantastic piece of software, but complexity is paramount with it. Don't you think so??? I HAVE NOTHING AGAINST GRUB! I have personally stops using it for years and using something very rudimentary and simple and useful. That is because I know what I am doing and my system well.=20 Caveat emptor: that was me, not every one else in the wild. Grub is used by the most distro by default,everybody knows it,but certainly not the norm. I would love to give it a stab again and if you better people feel it is necessary, but I need some concrete understanding from you,Masahiro and Randy(who is helping me actively). Say, You people might come up , We need these : a) b) c)=20 and we don't need these: a) b) c) My two cents! kindly, flame me with your thoughts. ~Bhaskar --uZ3hkaAS1mZxFaxD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEnwF+nWawchZUPOuwsjqdtxFLKRUFAl3DS5IACgkQsjqdtxFL KRV7Rgf+OMwhspUynXOGPUZfJm3a7pgGlvYmk7wseYUHUHD1binTyLxb77HXYIFZ AUpLuLOJYvWkJlfYzUWdrEYfU08+xxt38lp+M7wQgNEY8dBSk9paB++dk7TAnGAS FfbDvW+4vOoaw6pooIvdzWCSVe+MrfvX5Fhr59/VzW9iJ/d6NTirTo0MjoKlsgJi /6NWndrkD7yl0ARLXJqPT74OsYeTHPxvcPC0Z9EoUZTl+wRGWCDnb0fG065Phoc4 IU7ndS1AU149FyPQxON/SfrA39CtlzSs76kcaoyJwFmF1faAmFZWboZa5R0NxjXB /3FGNxq/s6LJGTwOTRlj87zaryftuQ== =amex -----END PGP SIGNATURE----- --uZ3hkaAS1mZxFaxD--