aboutsummarylogtreecommitdiffstats
path: root/10-zectl-pre.hook
blob: 58553f1417f0b28c66654b5646b7ffb99a06b2f7 (plain)
1
2
3
4
5
6
7
8
9
10
[Trigger]
Operation = Install
Operation = Upgrade
Type = File
Target = usr/lib/modules/*/vmlinuz

[Action]
Description = Create a boot environment
When = PreTransaction
Exec = /usr/bin/bash -c 'if [[ $(/usr/bin/zectl get -H pacmanhook) =~ yes ]];then /usr/share/libalpm/scripts/zectl-prune ; fi'