Skip to content

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

@consideRatio

Description

@consideRatio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions