From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A139A15815E for ; Sun, 11 Feb 2024 12:11:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B705DE2A08; Sun, 11 Feb 2024 12:11:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 91E5DE2A08 for ; Sun, 11 Feb 2024 12:11:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 827583430A2 for ; Sun, 11 Feb 2024 12:11:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C1FF814CB for ; Sun, 11 Feb 2024 12:11:33 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1707653477.e0d452e6ab95c8261b68c93ef9b6494d33e432b2.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/kernel-install.eclass X-VCS-Directories: eclass/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: e0d452e6ab95c8261b68c93ef9b6494d33e432b2 X-VCS-Branch: master Date: Sun, 11 Feb 2024 12:11:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a6d282d0-7f21-4d88-9234-d2c2cba60a82 X-Archives-Hash: 9dabb57a2cfa85a4e587f59f065ed414 commit: e0d452e6ab95c8261b68c93ef9b6494d33e432b2 Author: Andrew Ammerlaan gentoo org> AuthorDate: Sun Feb 11 09:41:32 2024 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Sun Feb 11 12:11:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0d452e6 kernel-install.eclass: explicitly set kernel image to 644 The kernel build system sets the permissions on the kernel image to 644. However objcopy creates a file with permissions 755. This causes a discrepancy in the permissions on the installed kernel image between +generic-uki,-generic-uki and between gentoo-kernel, gentoo-kernel-bin. Restore the symmetry by explicitly setting the objcopy'ed files permissions to 644. Signed-off-by: Andrew Ammerlaan gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35214 Signed-off-by: Andrew Ammerlaan gentoo.org> eclass/kernel-install.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index 47865a953389..f512d815fe09 100644 --- a/eclass/kernel-install.eclass +++ b/eclass/kernel-install.eclass @@ -621,6 +621,7 @@ kernel-install_extract_from_uki() { $(tc-getOBJCOPY) -O binary "-j.${extract_type}" "${uki}" "${out}" || die "Failed to extract ${extract_type}" + chmod 644 "${out}" || die } # @FUNCTION: kernel-install_install_all