From 292ddc24a38aaaa5a9fe5d64859cc4b7908d09e7 Mon Sep 17 00:00:00 2001 From: coffeegrind123 Date: Thu, 2 Oct 2025 19:47:47 +0300 Subject: [PATCH] fix: Use correct Alpine kernel headers path with package revision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alpine's linux-lts-dev installs headers to: /usr/src/linux-headers---lts Example: /usr/src/linux-headers-6.12.50-0-lts /usr/src/linux-headers-6.6.109-0-lts The pattern is: /usr/src/linux-headers-${VERSION}-0-lts Verified on Alpine 3.22 with kernel 6.12.50-0-lts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d164f3f6..d580b83e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,8 @@ RUN git clone https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git # Build the kernel module WORKDIR /build/amneziawg-linux-kernel-module/src -RUN make KERNELDIR="/usr/src/linux-headers-lts" || \ +RUN KERNEL_VERSION=$(cat /build/kernel_version.txt) && \ + make KERNELDIR="/usr/src/linux-headers-${KERNEL_VERSION}-0-lts" || \ echo "Kernel module build failed, will use userspace fallback" # Prepare module for installation