feat(pacman): new hooks

restart daemons, orphans name changed and new backup boot when new kernel update
This commit is contained in:
Sergio Laín 2023-11-03 23:40:13 +01:00
parent e28d9616f2
commit dd26468a9c
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,12 @@
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Description = Checking which daemons need to be restarted after library upgrades.
When = PostTransaction
Exec = /usr/bin/needrestart
Depends = needrestart

View file

@ -0,0 +1,11 @@
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = linux
[Action]
Description = Backing up /boot...
When = PreTransaction
Exec = /usr/bin/rsync -avzq --delete /boot /.bootbackup

View file

@ -143,6 +143,7 @@ meld
mono-basic mono-basic
mpv mpv
navi navi
needrestart
nemo nemo
nemo-fileroller nemo-fileroller
nemo-image-converter nemo-image-converter