Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp832283rdb; Fri, 2 Feb 2024 05:35:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7XwSiupIVw3ixqquW4X6CxqEJ9j+pMr3TH/idPlyDHLnLY8u8nSHJBlTqLpQD3TdiXJVD X-Received: by 2002:a17:906:3612:b0:a36:8711:f7b6 with SMTP id q18-20020a170906361200b00a368711f7b6mr4072574ejb.34.1706880949488; Fri, 02 Feb 2024 05:35:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706880949; cv=pass; d=google.com; s=arc-20160816; b=ZzOBzE559pYjHd4gJ5ytwkJ7lcXJnAICbR8w/otw/asDXDuTtiv12b84khW51VPmRb VsuEdNyyfkqrZbjbLODzjPwRHPJhMFWbA33r8oSz0Yu2EfiJ7cMnFNW4+zu++FYfyMuz xCuMqJxR3Zs47sqYXynVV4yoDXcbmmndUInFu6OK0I4e4gXb7nVNiaCgB5fGSqRbZ4V+ n8xOWtK08bMVBHjnVFCODdaq/lluUSNEcC3xppvozibK/6R6kGI52sTT2RVt5tqwh8je 0BL7R2fBIgf+IOZe2iGP/zmOw77ke4y7Wrbd096TcOYbrD7pxRePIEIkD6QmXgzxVf5g wznw== 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=r/NPxml4XLWAIvD1ZLjwOa+fFoSk6Hjq8PTUHO1+jHk=; b=q3/XPj5vtPqmn9liVP6D1w7hkRnh+eN/OqnjdBeNtq9mTDN00wsViN0EKmvPaePz7K vvWPmK8dFq9cWWCm6vH3xzTxx1zre3CxvyRHB+xFEGahMhar1SBJuHcaswDJ73J6I9DP KJbBAnKg9On35f39lGxG0hCoPrOVgs+xwBRBNXtoSbnrJ1SoiWbMeDyKNLo9wa5S5rwC aNliYqBWN49zBpilEeMoOm2XGVx6wQxEWkVaXE2eCWxfQ5IyfyZWhJpryx+bAdEB9P8F 32p0wKPyJnEQwUKQM8BRg0MlzkMRge4hiiWGUzlPfjxPgdpMwiZZUtK5WZjszsnDvEny pchg==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49905-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; AJvYcCVMcbllcHElFIlBjt23e//grkYDiQ5jyvqEZ+qVylCLY/+b8m6M6Vw8S7jyzQARTPyuxhBKmY21BNVRvAWRHQN9XF+SRt3qiSMXKEoUvA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s12-20020a170906454c00b00a34af8bdd57si816387ejq.728.2024.02.02.05.35.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 05:35:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49905-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=XRLSM7mY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-49905-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49905-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 EB7971F2B289 for ; Fri, 2 Feb 2024 13:35:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B07647A48; Fri, 2 Feb 2024 13:35:29 +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 To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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