-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Description
I think I've run into an issue where headers are installed, but the kernel version has changed over time. Could this make sense? If so, I think there is a bug related to this here, where the .installed
file is created in a way that ignores what kernel version is installed, even though it may have changed over time.
kubectl-trace/build/init/fetch-linux-headers.sh
Lines 128 to 143 in 09d8338
if [[ ! -e /lib/modules/.installed ]]; then | |
if check_headers "${HOST_MODULES_DIR}"; then | |
HEADERS_TARGET="${HOST_MODULES_DIR}/source" | |
else | |
install_headers | |
fi | |
mkdir -p "/lib/modules/${KERNEL_VERSION}" | |
ln -sf "${HEADERS_TARGET}" "/lib/modules/${KERNEL_VERSION}/source" | |
ln -sf "${HEADERS_TARGET}" "/lib/modules/${KERNEL_VERSION}/build" | |
touch /lib/modules/.installed | |
exit 0 | |
else | |
echo "Headers already installed" | |
exit 0 | |
fi |
Metadata
Metadata
Assignees
Labels
No labels