From 66dfaa28a1fbf86d9b2ceba77b3db6b268d8199e Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 4 Aug 2025 07:14:57 +0000 Subject: [PATCH] eclass/dist-kernel-utils: Sync with Gentoo It's from Gentoo commit 42eddd2bb0c152f2247810e74d2a643358b7ad66. --- .../portage-stable/eclass/dist-kernel-utils.eclass | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sdk_container/src/third_party/portage-stable/eclass/dist-kernel-utils.eclass b/sdk_container/src/third_party/portage-stable/eclass/dist-kernel-utils.eclass index 49977c1879..975efd2d63 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/dist-kernel-utils.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/dist-kernel-utils.eclass @@ -180,7 +180,14 @@ dist-kernel_reinstall_initramfs() { local kernel_dir=${1:-${KV_DIR}} local ver=${2:-${KV_FULL}} + # If this is set it will have an effect on the name of the output + # image. Set this variable to track this setting. + if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then + KERNEL_EFI_ZBOOT=1 + fi + local image_path=${kernel_dir}/$(dist-kernel_get_image_path) + if [[ ! -f ${image_path} ]]; then eerror "Kernel install missing, image not found:" eerror " ${image_path}"