summarylogtreecommitdiffstats
path: root/dkms-remove.hook
blob: 138a68c041d87e6ea0069528d560d22bbac3a76f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Trigger]
Operation = Upgrade
Operation = Remove
Type = File
Target = usr/src/*/dkms.conf
Target = usr/lib/modules/*/build/Makefile
Target = usr/lib/modules/*/kernel/

[Action]
Description = Remove DKMS modules
Depends = dkms
When = PreTransaction
# SIGPIPE workaround. See FS#49816
#Exec = /usr/lib/dkms/alpm-hook remove
Exec = /usr/bin/perl -e "$SIG{PIPE}='DEFAULT'; exec('/usr/lib/dkms/alpm-hook', 'remove');"
NeedsTargets