aboutsummarylogtreecommitdiffstats
path: root/10-zectl-pre.hook
blob: 69852b4dedd6ed9e5f33fd4e78c6275197933445 (plain)
1
2
3
4
5
6
7
8
9
10
11
[Trigger]
Operation = Remove
Operation = Install
Operation = Upgrade
Type = Package
Target = *

[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'