zfs-pacman-hook/pacman-zfs-snapshot-install.hook

13 lines
286 B
Plaintext
Raw Normal View History

2023-03-05 08:15:16 +01:00
[Trigger]
Operation = Install
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 install'
Depends = jq
2023-03-05 08:15:16 +01:00
AbortOnFail
NeedsTargets