aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-05-10 22:11:30 +0200
committerBrian Behlendorf <[email protected]>2022-05-18 12:10:39 -0700
commit2f713390d18ff3ae8ad4fdb8e97f9fdfbf867bc7 (patch)
tree4e1aa1909de5946ee3a3622ab04720b1f0c42def
parent7062a956f79b264084d71e542ce74bc5144f504d (diff)
kmodtool: cleanup
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13447
-rwxr-xr-xscripts/kmodtool6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/kmodtool b/scripts/kmodtool
index bda5c41ee..a79ad0c7a 100755
--- a/scripts/kmodtool
+++ b/scripts/kmodtool
@@ -557,12 +557,8 @@ else
cmdoptions="${cmdoptions} --filterfile ${filterfile}"
fi
- kernel_versions_to_build_for=$(buildsys-build-${repo}-kerneldevpkgs "--${build_kernels}" ${cmdoptions})
- returncode=$?
- if [ "$returncode" -ne 0 ]; then
-
+ kernel_versions_to_build_for=$(buildsys-build-${repo}-kerneldevpkgs "--${build_kernels}" ${cmdoptions}) ||
error_out 2 "buildsys-build-${repo}-kerneldevpkgs failed: ${kernel_versions_to_build_for}"
- fi
if [ "${build_kernels}" = "current" ] && [ -z "${noakmod}" ]; then
print_akmodtemplate