From ce89e807ecd2194613ad6e6bcee8cf95e982ad1a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 18 Nov 2023 11:02:30 +0000 Subject: gentoo auto-resync : 18:11:2023 - 11:02:29 --- eclass/Manifest.gz | Bin 38794 -> 38791 bytes eclass/dist-kernel-utils.eclass | 4 +++- eclass/kernel-install.eclass | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index a50f18b8385e..3dd3f9b96bb3 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ diff --git a/eclass/dist-kernel-utils.eclass b/eclass/dist-kernel-utils.eclass index d455c88ebee1..76a2f8d48cdf 100644 --- a/eclass/dist-kernel-utils.eclass +++ b/eclass/dist-kernel-utils.eclass @@ -33,6 +33,8 @@ case ${EAPI} in *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac +inherit toolchain-funcs + if [[ ${KERNEL_IUSE_SECUREBOOT} ]]; then inherit secureboot fi @@ -135,7 +137,7 @@ dist-kernel_install_kernel() { ebegin "Installing the kernel via installkernel" # note: .config is taken relatively to System.map; # initrd relatively to bzImage - installkernel "${version}" "${image}" "${map}" + ARCH=$(tc-arch-kernel) installkernel "${version}" "${image}" "${map}" eend ${?} || die -n "Installing the kernel failed" } diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index ea6ba3569a17..a0eceae8280b 100644 --- a/eclass/kernel-install.eclass +++ b/eclass/kernel-install.eclass @@ -510,7 +510,7 @@ kernel-install_pkg_postrm() { local kernel_dir=${EROOT}/usr/src/linux-${dir_ver} local image_path=$(dist-kernel_get_image_path) ebegin "Removing initramfs" - rm -f "${kernel_dir}/${image_path%/*}"/initrd{,.uefi} && + rm -f "${kernel_dir}/${image_path%/*}"/{initrd,uki.efi} && find "${kernel_dir}" -depth -type d -empty -delete eend ${?} fi -- cgit v1.2.3