summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-02-11 10:41:32 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-02-11 13:11:17 +0100
commite0d452e6ab95c8261b68c93ef9b6494d33e432b2 (patch)
tree3fbf83845a0df9e3b6591fba1a39ea40b8a5e117 /eclass
parentkernel-install.eclass: install vmlinu{x,z} symlink (diff)
downloadgentoo-e0d452e6ab95c8261b68c93ef9b6494d33e432b2.tar.gz
gentoo-e0d452e6ab95c8261b68c93ef9b6494d33e432b2.tar.bz2
gentoo-e0d452e6ab95c8261b68c93ef9b6494d33e432b2.zip
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 <andrewammerlaan@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35214 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-install.eclass1
1 files changed, 1 insertions, 0 deletions
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