kernel-config: Force-enable CONFIG_IKCONFIG_PROC=y

to make the kernel config available on the running machine via /proc/config.gz
This commit is contained in:
ColorfulRhino
2024-03-27 22:34:42 +01:00
parent 01be9ecbf9
commit 7ded1f7d7d

View File

@@ -47,7 +47,17 @@ function armbian_kernel_config__disable_various_options() {
fi
}
function armbian_kernel_config__enable_config_access_in_live_system() {
kernel_config_modifying_hashes+=("CONFIG_IKCONFIG_PROC=y")
if [[ -f .config ]]; then
kernel_config_set_n CONFIG_IKCONFIG_PROC # This option enables access to the kernel configuration file through /proc/config.gz
fi
}
# +++++++++++ HELPERS CORNER +++++++++++
#
# Helpers for manipulating kernel config.
#
function kernel_config_set_m() {
declare module="$1"
display_alert "Enabling kernel module" "${module}=m" "debug"