From 4bd33a7959fa63deef51588fb1faac42b75eb791 Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Fri, 20 Mar 2026 17:35:59 +0530 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).