From bcda81f700bf9167169a142c736e191bac867c3e Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Wed, 15 Jun 2022 15:41:55 +0200 Subject: [PATCH] update(falco_scripts): Change Flatcar dynlinker path The Flatcar kernel module build needs to relocate binaries in /host/lib/modules to run with the host's ld and glibc. While testing with glibc 2.34 that we plan to introduce soon, we found that the previous dynlinker symlink (ld-xxx.so) doesn't exist any longer. Update the hostld variable to use a path that is present in all versions of glibc. Signed-off-by: Jeremi Piotrowski --- scripts/falco-driver-loader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/falco-driver-loader b/scripts/falco-driver-loader index 2bbe9a65..c2f7bf67 100755 --- a/scripts/falco-driver-loader +++ b/scripts/falco-driver-loader @@ -151,7 +151,7 @@ flatcar_relocate_tools() { scripts/mod/modpost tools/objtool/objtool ) - local -r hostld=$(ls /host/usr/lib64/ld-*.so) + local -r hostld=$(ls /host/usr/lib64/ld-linux-*.so.*) local -r kdir=/lib/modules/$(ls /lib/modules/)/build echo "** Found host dl interpreter: ${hostld}" for host_tool in ${tools[@]}; do