From 376da6a50b03148169bf63ced309aa0d84dbd5e3 2017-08-21 21:19:26 From: drtyhlpr Date: 2017-08-21 21:19:26 Subject: [PATCH] Fix: Kernel module symlinks (untested) --- diff --git a/bootstrap.d/13-kernel.sh b/bootstrap.d/13-kernel.sh index 0617bc8..9946c81 100644 --- a/bootstrap.d/13-kernel.sh +++ b/bootstrap.d/13-kernel.sh @@ -160,8 +160,8 @@ if [ "$BUILD_KERNEL" = true ] ; then make -C "${KERNEL_DIR}" ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" modules_prepare # Create symlinks for kernel modules - ln -sf "${KERNEL_DIR}" "${R}/lib/modules/${KERNEL_VERSION}/build" - ln -sf "${KERNEL_DIR}" "${R}/lib/modules/${KERNEL_VERSION}/source" + chroot_exec ln -sf /usr/src/linux "/lib/modules/${KERNEL_VERSION}/build" + chroot_exec ln -sf /usr/src/linux "/lib/modules/${KERNEL_VERSION}/source" fi else # BUILD_KERNEL=false