Message ID | 20240202133520.302738-2-masahiroy@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-49905-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp429941dyc; Fri, 2 Feb 2024 05:36:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IH50R7YEkbPdjk2Ixrmz8773XyBfaWRV9eDAPGEH8gGILknL47Fa8AxmCLTzB7Zsg9QNFRU X-Received: by 2002:a05:622a:507:b0:42b:f858:76e9 with SMTP id l7-20020a05622a050700b0042bf85876e9mr4042778qtx.47.1706880968413; Fri, 02 Feb 2024 05:36:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706880968; cv=pass; d=google.com; s=arc-20160816; b=GgBwcOSI97E9VtLFXffzRKwn79OevzwMIYsgzSFU8feeATx5C3RFf1dbky7uTn4ubv npkfo3nzRWXpjQDOlgfBQfUbFQAHmwmjxq4sVgo0cZ67FpDA/uCssRcLKEjuNYuBjD/p TH1zfPVb4Y+ZetnqE1UiQwbl/4nHq6FKySX7Z8ZT5f/u0UWmBTjC4afZvrqwGU9mR2lK kMceSfmLtXEp+Nj6rDhY98l7vH3kdYgi9etQt9CwaTC/6ogp+DIN5AIDtKvXwW4AQnOl wuYwtyOPMKiL64cPENzo81b1icbkLyGWseKQQcdu2x2/X3IqwxUzl1XDcSfVuduHXvXG P4+A== 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=HGkAyCRP7B9cfybhImmaLOg8AVUtBK2ZkTCrL27pwKM=; fh=PilnAi+Lou/GM6CHalhgzKzhRgJ3sNKMukMFLDHFCHw=; b=Pk8VDBsQJjOZ752D3YCC0qasQEwidkg5Rkm0nqy5WfaAVy0+R6j8tgiK3XqFQ25AGO EXG3cdP0zp544uaDrEiw024D1NBz0ZpSZhOoUMa6qv+85etuyr/Udzo/MvRzC/q5mGUN 72dklsyWTntaaTY7xGM3mm5N5h55NG2tcPxX1jIczdAkDGx19NsPKNMxbF9Ux1wmCrx7 PhV6OaK27fLzoKsB+vfLizM1KwsRymhLrRu5Mrd57ps7Rh6wkWhiy/xwP2RCdFpdJaZ9 R1kcMfrpkOZNX26P1/p+KyN886Mauqjh77T3qyitYBBMxbgjH6uUE+UjSQSw8hmvEvdB 7ouw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XRLSM7mY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49905-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49905-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUULf419ZMWjZw+G93GukxIePpNsOhdIwbpLzmEuxHHZU2Au2ISq1VzeyBKlM0LdjbiLgZZ3NxawfQGDf3vOxZatkwisg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l6-20020a05622a050600b0042bff2835b8si1959491qtx.579.2024.02.02.05.36.08 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 05:36:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49905-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XRLSM7mY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49905-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49905-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 36FE91C25D42 for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 13:36:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C64D140771; Fri, 2 Feb 2024 13:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XRLSM7mY" 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 B14041E4A6; Fri, 2 Feb 2024 13:35:28 +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=1706880928; cv=none; b=kKZK8CLf62vMMo4nF0fiq9HYi/6hulrZHdl6xtLyuvROjRajgttFQ4X4AY0DknzkqLwEBLO4QvXGUKoqxMUEB0BuiEiWIUOjdfjuc8Jy5Feoj+nX4emjajY0C0JDN6oVNwdlVvIEWIqu7Mw6Id1EmNgvLUf/q/FKAjH+kJadGIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706880928; c=relaxed/simple; bh=7eFQengerwA9drGKbBSRiI3jh5gQkIy0/WN8yF4kW5A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bDAirjA0h5S9Ll4XyPNoCSJDuyEEVxqTzXuoqM1D6AiG79/k0gqgI6m6otbzpbFhlVgduMxDWPSIfrDp217gHDaBY9uwIQDifTCCWf1MXeLCUFCwLoVLMZwNDtlotYx5VYcBRcRp0IDk+zRYOfsFb7YpuYzrNd8mGnMvsstUxKg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XRLSM7mY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A3B1C43394; Fri, 2 Feb 2024 13:35:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706880928; bh=7eFQengerwA9drGKbBSRiI3jh5gQkIy0/WN8yF4kW5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XRLSM7mYYOf+1dV6jtbbEtoEV813bFXK7NmK4Mcvj9CpQvCjMKLfsC/R1Oo34SkkV MYnB/WaBRQATuooUF1RokGWwLbY9pRS3KDISENNZVwRG+F9KhDFxUgs3vwa0rMuB+9 bktrA1tFVleEDBF/6DXVqeUmgyUmbIWiffmPAovpczR2XKwc+H+F/ZjlCa4usM0Omk BpYhAH41HlbJsxrujtWts2EJ+5xAcTUetVAyvlR0d1lVq6Sf1qR+0pu3aZ/uuzKgWi ImHgaXjS2tt6uqlUSBwTJHXdNRh2TXNr0b/yBtXz6vToO41rr3hie4TedwZ1XCQhfB MCUCyBzHXcjiQ== From: Masahiro Yamada <masahiroy@kernel.org> To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada <masahiroy@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nicolas Schier <nicolas@fjasle.eu>, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] kbuild: rpm-pkg: mark installed files in /boot as %ghost Date: Fri, 2 Feb 2024 22:35:18 +0900 Message-Id: <20240202133520.302738-2-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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789794418182573378 X-GMAIL-MSGID: 1789794418182573378 |
Series |
[1/4] kbuild: rpm-pkg: do not include depmod-generated files
|
|
Commit Message
Masahiro Yamada
Feb. 2, 2024, 1:35 p.m. UTC
Mark the files installed to /boot as %ghost to make sure they will be
removed when the package is uninstalled.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
scripts/package/kernel.spec | 4 ++++
1 file changed, 4 insertions(+)
Comments
On Fri, Feb 02, 2024 at 10:35:18PM +0900, Masahiro Yamada wrote: > Mark the files installed to /boot as %ghost to make sure they will be > removed when the package is uninstalled. > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Tested-by: Nathan Chancellor <nathan@kernel.org> > --- > > scripts/package/kernel.spec | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec > index aaedb6d1b26f..ecedcfc11e73 100644 > --- a/scripts/package/kernel.spec > +++ b/scripts/package/kernel.spec > @@ -77,6 +77,10 @@ ln -fns /usr/src/kernels/%{KERNELRELEASE} %{buildroot}/lib/modules/%{KERNELRELEA > echo "%ghost /lib/modules/%{KERNELRELEASE}/modules.${x}" > done > > + for x in System.map config vmlinuz; do > + echo "%ghost /boot/${x}-%{KERNELRELEASE}" > + done > + > echo "%exclude /lib/modules/%{KERNELRELEASE}/build" > } > %{buildroot}/kernel.list > > -- > 2.40.1 >
diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index aaedb6d1b26f..ecedcfc11e73 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -77,6 +77,10 @@ ln -fns /usr/src/kernels/%{KERNELRELEASE} %{buildroot}/lib/modules/%{KERNELRELEA echo "%ghost /lib/modules/%{KERNELRELEASE}/modules.${x}" done + for x in System.map config vmlinuz; do + echo "%ghost /boot/${x}-%{KERNELRELEASE}" + done + echo "%exclude /lib/modules/%{KERNELRELEASE}/build" } > %{buildroot}/kernel.list