Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2757401rdb; Mon, 5 Feb 2024 17:35:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2h6HPYZtRDeUrm+1zL5YSy4kLXrdJBPhaCMcLq4OKt3w6Z6Y0p9VR+Qgotyca8KdtEf6P X-Received: by 2002:aa7:982a:0:b0:6e0:3d69:75ca with SMTP id q10-20020aa7982a000000b006e03d6975camr1437083pfl.21.1707183330551; Mon, 05 Feb 2024 17:35:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707183330; cv=pass; d=google.com; s=arc-20160816; b=yycjFo1Mp539YIphnF/Td2Uj0TCK9vHKXAXzp73dTj3htHKrxpzJDGnnVOK7wxpgLk E0anJVqDlUoAM49wBYfbYa7zv5fl0OH4I7jkJI6KExm/3Aai1g8WRegDhN7rTdQ2oIKW sMAPjx9iGDU+jNLMz379m0Hg5kJL8tLbNZPJ/D1kshD7dQ7Lwe6+DhCmXzzUAUGqobth YmHfGjBOzow8jdLxroHlbnnwdaPZud0vGnJuzmEcdn3HhJP35kcwEhQqP8FZYwF8TPPJ cewSwH92tQvwJuuXHV5dcLziQ+vPPjcW7YF135J86n2gBu4usUZFi6xD+07RM2yri7We w++g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Rsm6MoHRu9nnP86xbd26aIN4vCtUNJkOEUNrYU1+ajo=; fh=NAh06wOlsxAGKclLQMV4A0CPHo8h9lXXnc8JGwVUi10=; b=iGzxKiQaYm52SVLBydYZJmr68IPk5SBF43YaUevkAWSZXFmaOG71sROZ919cn2xfAV fDb6R6CtWXian2FMW2w/j/noMjDwfGjMPVcSttbxgOyPGmd+8+nwvJwa3hQZo1j5/bPe EJgdfRYmRro5ciNH/0izdM/lNgHxV/sQfdu5xvyNKO3ySGUfIwGW1jYIq8svK09CH6lb pwDGKR8j9o6MkxrAopIXE2fhVG2kjGq/NI02wA7dVsnnGerMSUNGbwRE6zfyDRTfrAh7 KoxraKfCCfz46pY+m7/2MvfwJgv54R4hz4TaQoCBk5KUVoD476YQnqRRXZEyHbGkmEyw Ie5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=byseLhi4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54157-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54157-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; AJvYcCWBzrmq8inZfsY3/l+4VWP5L5EKxhKFeBkb+hndn4cudpX9F/pkKCyDD5UEh3EHuOB80wQLMRWlghg8CZTqPqWWldiMApYRI0WonagFFg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v21-20020a63f215000000b005dbdd60e439si774023pgh.485.2024.02.05.17.35.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 17:35:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54157-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=byseLhi4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54157-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54157-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 287C0288E0C for ; Tue, 6 Feb 2024 01:35:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 727F7523C; Tue, 6 Feb 2024 01:35:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="byseLhi4" 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 985E14A12; Tue, 6 Feb 2024 01:35:26 +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=1707183326; cv=none; b=CcCoWcjXgM40mAz6ml3/fTQt92d8Fd/7BOuKlPCLr914K4KmQucYxNLqjAGNtZNA5fpyIclOjFDEHwaUNqKlpkjdBlu+q0AtY/9SmRUULqdA5gVCokuqqtMCZClZQXvec/ko0QYN0o6ZHnSB4XW4hgxuaXlXEX/HncKdgt1LRTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707183326; c=relaxed/simple; bh=GTypLeGQD+FlzS9/zrkSLFidGHzGhNVLfKzk8fk8Lq0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Drx5wo97XvlmYG+qfrrI++0D5NVmZr7MSThjflEWSy0A6Hlsfk2UoCRnJQek3N2BuS5pkczuOCRHmvTpLDZyYrwskI6TrWKGzZc1y8tRfpoqW6rsiGNh/75zKawUvfANyU/gr21VU0iRy2NzhQj1pV/B0e9y/8l2h9h/pVZJqkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=byseLhi4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7BD8C433C7; Tue, 6 Feb 2024 01:35:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707183326; bh=GTypLeGQD+FlzS9/zrkSLFidGHzGhNVLfKzk8fk8Lq0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=byseLhi4ko8ezhY9OGnbrVUra+uZuwttTrKNF+xhNjRRVUZF2ha7eNIt+zRbK3RvF djq7s40BpArHEP/S4wTeZkrVP5F6TS8s2xUoK9NUh74njy3uwFdqRggWW3cLjUMxth zysHHoF25GekW6YrXp7c6o099yLnqtH7/N5BEpB2bJ8UIGQ6LqaO8rhTVe9mu8TiNk QOULH2fjV3KDEVCoX5dcIUmB0wLobCunYRjFCWBB49niOUYS/WBEEAxZoXALCeTtyf GVmVy/NilbK64+7anIbuZUOdHH+YpjN3f2sc4dY3TUOMDeJU8n3zFHM9QTRoOhmwhj 2uPAaedyZ6Z5A== Date: Mon, 5 Feb 2024 18:35:24 -0700 From: Nathan Chancellor To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Nicolas Schier , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] kbuild: rpm-pkg: mark installed files in /boot as %ghost Message-ID: <20240206013524.GB3151678@dev-arch.thelio-3990X> References: <20240202133520.302738-1-masahiroy@kernel.org> <20240202133520.302738-2-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240202133520.302738-2-masahiroy@kernel.org> 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 Tested-by: Nathan Chancellor > --- > > 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 >