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

add possible linux kernel config path #561

Merged
merged 1 commit into from
Jun 7, 2024
Merged

add possible linux kernel config path #561

merged 1 commit into from
Jun 7, 2024

Conversation

w568w
Copy link
Contributor

@w568w w568w commented Jun 6, 2024

There are several paths to obtain current kernel config on Linux:

  1. /proc/config.gz: available since Linux 2.6 and needs CONFIG_IKCONFIG_PROC=y;
  2. /boot/config and /boot/config-%s: available in most Debian-based distros, but NOT in Arch Linux or Gentoo.

However, for those kernels where CONFIG_IKCONFIG_PROC is not set, both of them are unavailable. According to proc(5), the kernel config can be found at /lib/modules/$(uname -r)/build/.config.

This PR adds it to the search paths.

Q: Is there really any kernel that is compiled without CONFIG_IKCONFIG_PROC?

Yes. Xanmod is a popular kernel among users which does not have CONFIG_IKCONFIG enabled.

Copy link
Member

@cfc4n cfc4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@cfc4n cfc4n merged commit 4b1c52d into gojue:master Jun 7, 2024
6 checks passed
@cfc4n cfc4n added the enhancement New feature or request label Jun 7, 2024
@w568w w568w deleted the patch-1 branch June 24, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants