diff options
author | Simon Rettberg | 2022-06-21 10:47:38 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-06-21 10:47:38 +0200 |
commit | f894d46366bbc61c7da55dfb35a320f9da2bef20 (patch) | |
tree | 153c3f9b9223d3a30e98f54a5750ade072e65fe4 /core/modules/kernel-vanilla/module.build | |
parent | [speedcheck] Update wrapper script to work with dnbd3-fuse (diff) | |
download | mltk-f894d46366bbc61c7da55dfb35a320f9da2bef20.tar.gz mltk-f894d46366bbc61c7da55dfb35a320f9da2bef20.tar.xz mltk-f894d46366bbc61c7da55dfb35a320f9da2bef20.zip |
[kernel-vanilla] Prefer /boot/config-mltk as config base
Diffstat (limited to 'core/modules/kernel-vanilla/module.build')
-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 |