From 95723a955505d38b88fb277e066a61722b52a368 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Wed, 18 Mar 2020 10:32:59 +0100 Subject: [PATCH] Fix return value from dkms postinst in spec file --- src_pkg/rpm_pkg.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src_pkg/rpm_pkg.spec b/src_pkg/rpm_pkg.spec index 8655c12..285a8e0 100644 --- a/src_pkg/rpm_pkg.spec +++ b/src_pkg/rpm_pkg.spec @@ -65,8 +65,9 @@ rm -rf %{buildroot} for POSTINST in /usr/lib/dkms/common.postinst /usr/share/%{module}/postinst; do if [ -f $POSTINST ]; then $POSTINST %{module} %{version} /usr/share/%{module} + RET=$? modprobe %{module} > /dev/null 2>&1 || true - exit $? + exit $RET fi echo "WARNING: $POSTINST does not exist." done