From a0e1857e596698dd0e01dc6297ccc748c302df74 Mon Sep 17 00:00:00 2001 From: Didier Trosset Date: Tue, 26 Nov 2024 15:15:50 +0100 Subject: [PATCH] Keep the Module.symvers file along with the module files if it exists. --- dkms.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dkms.in b/dkms.in index e1da80e..42ebb61 100644 --- a/dkms.in +++ b/dkms.in @@ -1202,6 +1202,9 @@ actual_build() # Save a copy of the new module mkdir "$base_dir/module" >/dev/null + if [ -f "$build_dir/Module.symvers" ] ; then + cp -f "$build_dir/Module.symvers" "$base_dir/module/Module.symvers" + fi for ((count=0; count < ${#built_module_name[@]}; count++)); do local the_module local built_module