2019-08-19 00:34:38 -04:00
|
|
|
# The following would be placed in /etc/pacman.d/hooks/ directory (you may need to create it if it doesn't exist) as bootsync.hook
|
|
|
|
# It assumes you have:
|
|
|
|
# * a properly configured /etc/bootsync.xml
|
|
|
|
# * /usr/local/bin/bootsync symlinked to <OpTools>/sys/BootSync/bootsync.py
|
|
|
|
[Trigger]
|
|
|
|
Operation = Install
|
|
|
|
Operation = Upgrade
|
|
|
|
Operation = Remove
|
|
|
|
Type = File
|
|
|
|
Target = boot/*
|
2021-01-19 01:12:07 -05:00
|
|
|
Target = usr/lib/modules/*/vmlinuz
|
|
|
|
Target = usr/lib/initcpio/*
|
|
|
|
|
|
|
|
[Trigger]
|
|
|
|
Operation = Install
|
|
|
|
Operation = Upgrade
|
|
|
|
Operation = Remove
|
|
|
|
Type = Package
|
|
|
|
Target = linux
|
|
|
|
Target = mkinitcpio
|
2019-08-19 00:34:38 -04:00
|
|
|
|
|
|
|
[Action]
|
|
|
|
When = PostTransaction
|
|
|
|
Exec = /usr/local/bin/bootsync
|
2021-01-19 01:12:07 -05:00
|
|
|
Depends = python-magic
|
|
|
|
Depends = python-psutil
|
|
|
|
Depends = python-lxml
|