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

[Action]
Description = Restoring Linux kernel modules...
When = PostTransaction
Depends = coreutils
Depends = rsync
Exec = /bin/sh -xc 'KVER="${KVER:-$(uname -r)}"; if test -e "/lib/modules/backup/${KVER}"; then rsync -AHXal --ignore-existing "/lib/modules/backup/${KVER}" /lib/modules/; fi; rm -rf /lib/modules/backup'