Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp832833rdb; Fri, 2 Feb 2024 05:36:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5NeT2YVCXq1wNk3Ui2fXlwsdb29rNyvbLbQFlqTbYeGPyKeVgOVynk1fSGAMt/UYFp9W3 X-Received: by 2002:a17:906:3295:b0:a37:5da:46cd with SMTP id 21-20020a170906329500b00a3705da46cdmr1314382ejw.21.1706881007814; Fri, 02 Feb 2024 05:36:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706881007; cv=pass; d=google.com; s=arc-20160816; b=M8vkNOUsiho72cLZ3xa/HOFF816Lz09Cg8akNDmFezpN7IDbH6xeqLOl9UYdVgy7gK fWjHvCgYIxl4/J+LTNIHbWY6khRMvnqefvdkvKdqrXL/xhohLQB9jrYdyaopBhNvBzsE 6nGH8TV8mAjTi7pW4BsSg4GVSSQl0jskQttytwf1L6k3KJQTQF7W0tCh1xOFtGdA2CZm 4reN/3JpDYBWA8m94dUcBZi9S5nI3TxzB2EL9DGbdin3aqLCvVx6bEXxwuFQHIHhuUci QYGc7d5DeKl70nlRT1SZdsfOWVQdNvv3IbttXbIcXTjuUUV7D0VkNOHURvzQgcgMOGH2 wM7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kOa6lQc5BwC7V1LC2iSo0L/axDHEfh8Kzyajz+jlTsc=; fh=sbbFlLUXWwNhImE9HwmX3oie1QFA2AGGEjgWdu9iNDc=; b=QeMSPCTDyjMdxD7CPCJcsZXh5Yr6+rTOVH3xAoimMeMqS7k06itMtqhDbVjHLjTMTE 33w+wWqJhCkhyUide8SLDvm6Xifu9VuTAg0HC6LDQSivwZodUUCQFdUuk83+o0igSqC1 6KuEAzqG2Ky/pG/xwjQMtp8afw13R06VxJEBnpRR4ikGZM78BVAma5DblA2Z6hk5dbxs YBNoxfxOwFFh45zHZSMZKg7qZ1H8nYMTzOwGlnAEXOe+g8dlMNE02LuO1COJpTWoIxYO 3kI5nl3FAUpTO5N+kkI6s7NX1qooZGDbF6LktBnoxSy6LrHDiexSH4cRb5dJvRPYhbWN 7VMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9wTjFPF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49907-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXfvxUdWNrj/Kn18oSv5SN5nXz/2N0WAuTl1DJ1y5Q6yIkg09PADFC1dNhZkswfPb4gIMR+pJemq31xWmYwkne47algPm1bRNfOxVHC6A== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ck14-20020a170906c44e00b00a2d3e55cce7si810311ejb.404.2024.02.02.05.36.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 05:36:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49907-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9wTjFPF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49907-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A2F5A1F253B6 for ; Fri, 2 Feb 2024 13:36:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 999A9144624; Fri, 2 Feb 2024 13:35:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o9wTjFPF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C35601419B0; Fri, 2 Feb 2024 13:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706880931; cv=none; b=Asuj2kGush6IkkAaYbLGTtSdhTPDhlFy6r552wodT8zsIkykBDiygeu7HLDHfL6UTOQQeSYmXnEWgb0DOiyV2Auem64shf9xzaR8NqjUJYRhcb4yWK3p2GDP69bbvT766f/tluvGGdY5w7xqMjLvY+5eDwEdaGIuddQiqUKktfU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706880931; c=relaxed/simple; bh=kEo4j6RbGBwDkaFpN5XVSmcWPQCgDr626mH0ogy5qbs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VTxc0neANVfYn87TPZOb34IvFKNs8JSJudYpwXjAd2x2QEdBkZMnVdN0svFtzn+n0ew84FHqYAkGjuk+J9S6icqFFwydLgfdsIwDjvQbLy7xrKZhiUY7nQBi4lX3hnkqQScb3Rh/X6+yRNLNanhrORh8d9R4WieugoIDwF+CjBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o9wTjFPF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5833DC43390; Fri, 2 Feb 2024 13:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706880931; bh=kEo4j6RbGBwDkaFpN5XVSmcWPQCgDr626mH0ogy5qbs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o9wTjFPFPUJZK+qU5vDxPrIjjaDRM1wdNAawh31g3gXI9yurFsRiN/HBPEGxELIvY 9jikLJsYmkoG5bwzv5TCpYgwc6Kz9K+MpaedtrlvHjO2cQrp9s2MkrXTJ6saCjGUMR EPXBmw6r6sTPzoY6ebxDZcnYdA46KIkVUUKiURoxQDvj36fiCQs0J6E72Xe0cdS7H7 SKodssaWEDeF9AbuLWHiC0COSXjep14e+0e7MVh2Em7QWxmWBaf82sl3LAE3Lrya2j 9HQ1S7hJNLZuuSi+Sz6SAzv58SSRztDl8mmcSomkIeS1PBHOKLUxhVlEVJ/7jCKNRb Wq9+aaWA6wPag== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH 4/4] Revert "kbuild/mkspec: clean boot loader configuration on rpm removal" Date: Fri, 2 Feb 2024 22:35:20 +0900 Message-Id: <20240202133520.302738-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240202133520.302738-1-masahiroy@kernel.org> References: <20240202133520.302738-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This reverts commit 6ef41e22a320d95a246d45b673aa7247cc1bbf7b. If this is still needed, we can bring it back. However, I'd like to understand why 'new-kernel-pkg --remove' is needed for uninstallation, while 'new-kernel-pkg --install' was not called during the installation. Signed-off-by: Masahiro Yamada --- scripts/package/kernel.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index c1b745967f64..c256b73cca3e 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -101,9 +101,7 @@ if [ ! -e "/lib/modules/%{KERNELRELEASE}/modules.dep" ]; then fi %preun -if [ -x /sbin/new-kernel-pkg ]; then -new-kernel-pkg --remove %{KERNELRELEASE} --rminitrd --initrdfile=/boot/initramfs-%{KERNELRELEASE}.img -elif [ -x /usr/bin/kernel-install ]; then +if [ -x /usr/bin/kernel-install ]; then kernel-install remove %{KERNELRELEASE} fi -- 2.40.1