aboutsummarylogtreecommitdiffstats
path: root/10-linux-modules-pre.hook
blob: 727c2ed1eb605e0c265cf1c99027d10438599ffc (plain)
1
2
3
4
5
6
7
8
9
10
11
[Trigger]
Operation = Upgrade
Type = File
Target = boot/vmlinuz*


[Action]
Description = Saving Linux kernel modules...
When = PreTransaction
Depends = rsync
Exec = /bin/sh -c 'KVER="${KVER:-$(uname -r)}"; if test -e "/usr/lib/modules/${KVER}"; then rsync -AHXal --delete-after "/usr/lib/modules/${KVER}" /usr/lib/modules/backup/; fi'