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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 405DCC433E2 for ; Tue, 23 Mar 2021 15:06:11 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8FA27619B7 for ; Tue, 23 Mar 2021 15:06:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8FA27619B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lOibR-0003s1-GC; Tue, 23 Mar 2021 11:05:53 -0400 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1lOibP-0003rw-HZ for kernelnewbies@kernelnewbies.org; Tue, 23 Mar 2021 11:05:51 -0400 Received: by mail-qt1-x835.google.com with SMTP id f12so15140935qtq.4 for ; Tue, 23 Mar 2021 08:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:mime-version :content-transfer-encoding:date:message-id; bh=7wWZza8B18H8MyoB3Z6ZWvsljNrD+QSs4ElHSz0aWTk=; b=IAtzFhVWKFLt7ZAnhAXSQtLyQED035j4YWqXhTqTp8y8k5SY6lbEWGOnl39CiYyXof JanV3P1DnTEPJY/iR7vFRp+MLLVha0xSnCDGoJb8vYDTyhrh29yVaNbV43WaYdlJTwvz Go3pRzLXhKHuRKEQyPfN7MWdEO7SX8tHOkb+PnHVijuAsT8StY8/Ln7ovmXo7ZfXgqXC F2l3nKErb0AKRixDL0vByUDSWnmv5X2HN0YOUN3t3ifDRrfUN9g9WG8secx2XqXyQMlY m/Tejv8cSwQZqZSAlGXt903RhrEPr+kqN6mCWqDOUOAZge+OKeGSsweY4jvSzYkhRazr WF/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=7wWZza8B18H8MyoB3Z6ZWvsljNrD+QSs4ElHSz0aWTk=; b=eG/dg6tYlp8al7CbXkhIeggbZp1S+Aw9uyJNoNj9Tn+BKa5h7PJxnFFUvd07FC4w0a xdC9AyQhP6i+woXN4Il0M/ccX6nbwf5bB57QllRKN2UJxaBtddhF3KOl7N8g+7e057w0 ivUuVUVfhTvgMMGw2lAEQZcPJEt+h63DKzZCKoaM87ZTfN6R+2/bDsPpeuhKLJ0pftVH q3Qo1m2fXlKwwz/PRP0ADT+JwCy56N9bhH8l+iGH2CYkpR0OP4y3m39jllJwxCLKg4Qg L4sIW6xtph/jp6m1JWH7sxLoysvf7mOF/4+yvEbeJzYImZBCJdxUe34WNmFti+PEgihr dlyQ== X-Gm-Message-State: AOAM532posm/P7X5QlgIFHMxrQvJUSE/CF7E5IlleDd2f3mgC5PO2I8a Huh4IkruFYKZ57g14ul4STxG3A== X-Google-Smtp-Source: ABdhPJx+jQ+QP5fJ/cYGOKz3it8CP/Rq2Zu0oW87SmXlbZShq/YeWxSbnmOlqgV7oeGtZuKF11AXpQ== X-Received: by 2002:ac8:519a:: with SMTP id c26mr4701762qtn.342.1616511948933; Tue, 23 Mar 2021 08:05:48 -0700 (PDT) Received: from turing-police ([2601:5c0:c380:d61::359]) by smtp.gmail.com with ESMTPSA id z2sm13839866qkg.22.2021.03.23.08.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 08:05:48 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Gidi Gal Subject: Re: How to switch between installed kernel and developed kernel In-Reply-To: References: <87zgyvtkd8.fsf@miraculix.mork.no> <323555.1616462233@turing-police> Mime-Version: 1.0 Date: Tue, 23 Mar 2021 11:05:47 -0400 Message-ID: <21662.1616511947@turing-police> Cc: Aruna Hewapathirane , kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3939973407649727289==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============3939973407649727289== Content-Type: multipart/signed; boundary="==_Exmh_1616511947_11646P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1616511947_11646P Content-Type: text/plain; charset=us-ascii On Tue, 23 Mar 2021 16:37:13 +0200, you said: > I gave up for now and prepared bash script for removing the files, based on > the information in > https://www.cyberciti.biz/faq/debian-redhat-linux-delete-kernel-command/ > (see "A note about custom compiled Linux kernel" section). In my opinion, > if Makefile supports install, it should support uninstall as well. Well, here's the thing.. the just-built kernel tree know what it has to install because it was just built with that .config, and it knows what files it just built. But how is that 5.12-rc4 build supposed to know what to remove that belonged to a 5.9 kernel built with a different .config that the 5.12-rc4 used, and which potentially had more modules enabled than the current source tree? Bonus points for knowing how to figure out if the 5.9 kernel was installed via rpm or dpkg or opkg or 'make install', and whether the 'make install' invoked the system-supplied /sbin/installkernel script, or the user provided a variant that installed more/less/different files? Especially as you noted, that it's a 3 or 4 line bash script to remove the files. And you hopefully know what extra rpm/dkpg stuff you need to clean up.... --==_Exmh_1616511947_11646P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBYFoDygdmEQWDXROgAQKXZg//Y/pJRVIDe7ogS8bgnKKgtnFNb6ww0RGr ozIEaKr0x9hEBFCbe2ZdBlYzsPXUvHQ4VdoersqOQR4lbJKFIjnhUrVmCIp/NwWQ /hnzBZx7YxF3NAgEO/1kZYhqNLp4GJqumIuPNhU5F77/bZGofd95eoDsQ4sl+B6G 77Q/o92yy8faRhJ/Dw66tIALlupcNf5vnw6xTCbb2vRevGF6MnKI2WFqcQNd8/b9 S91+MfBSTiMiZ0cLweKEVbmZMkkfa9Ci2jIWGnat1g1Fbp4s5yNxXRy9pnp6RAb8 dkZJwlggn4LUFhmB5qs67fwgX9Fw0okqmxSC88m31Wt5B6lMmlpBqOQdF6C6Emnh KwIeWJ/TnQIcQ8pTRpvb6e+E/hZiI2I2VHdfHe+Tbsfdou217r4nu1n4YCgDCr3k kGlcpW85OLFyzssnzIIsUkm22P7V6J27XXfM+G3q2Z7IaSLQqh+vUKoATUAXwilP QvvfCdHA9GODeXP98b+6t3YQXr12KqV6Nr98c4wO0uSKaoTK85jGMmJBeeLsHifc lp7kb1Q6mIZGqKU/1JnQzLqg0eZFVd/2Af3a+gPeSdFG7lJ6bsMUtrlG62+mk9TR ejPtKvQsqmkkJjaDdDHJJBcJ/R9+8xqQR2yq7mAFVzJO1JLPUg5ddWl8e3uoVUb6 mlHM2BnOqX4= =13K8 -----END PGP SIGNATURE----- --==_Exmh_1616511947_11646P-- --===============3939973407649727289== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============3939973407649727289==--