From e4f0889f97a472e7253295d8f62863e5f0313bd9 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 13 Aug 2024 14:12:45 +0000 Subject: [PATCH] NVIDIA: SAUCE: kernel/script: depmod: Do not use exec for depmod call BugLink: https://bugs.launchpad.net/bugs/2080908 Directly call the depmod instead of using the exec for executing this. Using the exec is exiting the script. http://nvbugs/4403549 Signed-off-by: Laxman Dewangan Acked-by: Noah Wager Acked-by: Jacob Martin Signed-off-by: Noah Wager --- scripts/depmod.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/depmod.sh b/scripts/depmod.sh index bd2af7a306f0..174a77d89610 100755 --- a/scripts/depmod.sh +++ b/scripts/depmod.sh @@ -37,7 +37,7 @@ do config_file_name=$(basename -- "$config_file") flavor=$(echo ${config_file_name} | cut -d'-' -f3) - exec "$DEPMOD" "$@" "$KERNELRELEASE" -C "$config_file" + "$DEPMOD" "$@" "$KERNELRELEASE" -C "$config_file" exit_status=$? if [ "$exit_status" -ne 0 ]; then