diff options
-rw-r--r-- | core/modules/kernel-vanilla/module.build | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/modules/kernel-vanilla/module.build b/core/modules/kernel-vanilla/module.build index f91108f8..7712b334 100644 --- a/core/modules/kernel-vanilla/module.build +++ b/core/modules/kernel-vanilla/module.build @@ -166,10 +166,13 @@ kernel_build_id() { # Get path of kernel config zu base this kernel on; empty if none exists kernel_config_base() { local src - src="/boot/config-$(uname -r)" - if [ -s "$src" ]; then - echo "$src" - elif [ -f "/proc/config.gz" ]; then + for src in "/boot/config-mltk" "/boot/config-$(uname -r)"; do + if [ -s "$src" ]; then + echo "$src" + return 0 + fi + done + if [ -f "/proc/config.gz" ]; then zcat "/proc/config.gz" > "${ROOT_DIR}/tmp/kernel-config" echo "${ROOT_DIR}/tmp/kernel-config" fi |