Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/lib/modules/.installed should include kernel version - right? #187

Open
consideRatio opened this issue May 29, 2022 · 0 comments
Open

/lib/modules/.installed should include kernel version - right? #187

consideRatio opened this issue May 29, 2022 · 0 comments

Comments

@consideRatio
Copy link
Contributor

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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant