From 3e3f997ea9fd95183ad920c7ed8e0a27a7a54961 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Mon, 13 Apr 2026 14:00:06 +0200 Subject: [PATCH] Revert "There is no need to set KERNEL_DIR anymore now linux-mod-r1 is fixed" This reverts commit 81dcbb38e61df16081b45bb88ab77a040365970b. --- .../coreos-overlay/coreos/config/env/sys-fs/zfs-kmod | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/zfs-kmod b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/zfs-kmod index f7951a4d39..5f7fa2a9a8 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/zfs-kmod +++ b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-fs/zfs-kmod @@ -1,3 +1,6 @@ +: ${MODULES_ROOT:=$(echo ${SYSROOT}/lib/modules/*)} +KERNEL_DIR="${MODULES_ROOT}/build" + # This addresses an issue with the kernel version compatibility check # when installing zfs-kmod to /build/ (e.g. via build_packages) # from its binpkg (i.e. not recompiling it).