summaryrefslogtreecommitdiffstats
path: root/rpm
diff options
context:
space:
mode:
authorColMelvin <[email protected]>2020-05-14 22:51:33 -0500
committerGitHub <[email protected]>2020-05-14 20:51:33 -0700
commit4d6043f2b74ded58d36d3254acd12da16023c844 (patch)
treecdde1b20e1b3ae9ad967ee601e7bda775ac6543b /rpm
parent1b9cd1a9d9ebd213df1427d38e75d3233c873bde (diff)
RPM: Remove old versions of DKMS on upgrade
Due to a mismatch between the text and a regex looking for that text, the `%preuninstall` script would never run the `dkms remove` command necessary to avoid corrupting the DKMS data configuration. Increase regex specificity to avoid this issue. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Chris Lindee <[email protected]> Closes: #9891 Closes #10327
Diffstat (limited to 'rpm')
-rw-r--r--rpm/generic/zfs-dkms.spec.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm/generic/zfs-dkms.spec.in b/rpm/generic/zfs-dkms.spec.in
index f849125a4..29e8fd7dd 100644
--- a/rpm/generic/zfs-dkms.spec.in
+++ b/rpm/generic/zfs-dkms.spec.in
@@ -93,7 +93,7 @@ fi
CONFIG_H="/var/lib/dkms/%{module}/%{version}/*/*/%{module}_config.h"
SPEC_META_ALIAS="@PACKAGE@-@VERSION@-@RELEASE@"
DKMS_META_ALIAS=`cat $CONFIG_H 2>/dev/null |
- awk -F'"' '/META_ALIAS/ { print $2; exit 0 }'`
+ awk -F'"' '/META_ALIAS\s+"/ { print $2; exit 0 }'`
if [ "$SPEC_META_ALIAS" = "$DKMS_META_ALIAS" ]; then
echo -e
echo -e "Uninstall of %{module} module ($SPEC_META_ALIAS) beginning:"