15 lines
332 B
Plaintext
15 lines
332 B
Plaintext
|
[Trigger]
|
||
|
Operation = Install
|
||
|
Operation = Upgrade
|
||
|
Operation = Remove
|
||
|
Type = Package
|
||
|
Target = *
|
||
|
|
||
|
[Action]
|
||
|
Description = Create ZFS snapshot on active system dataset
|
||
|
When = PreTransaction
|
||
|
Exec = /bin/sh -c 'while read -r f; do echo "$f"; done | /usr/local/bin/pacman-zfs-snapshot'
|
||
|
Depends = zfs-auto-snapshot
|
||
|
AbortOnFail
|
||
|
NeedsTargets
|