✨ feat(pacman): new hooks
restart daemons, orphans name changed and new backup boot when new kernel update
This commit is contained in:
parent
e28d9616f2
commit
dd26468a9c
4 changed files with 24 additions and 0 deletions
12
.config/pacman/hooks/90-needrestart-pacman.hook
Normal file
12
.config/pacman/hooks/90-needrestart-pacman.hook
Normal 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
|
11
.config/pacman/hooks/95-backup-boot.hook
Normal file
11
.config/pacman/hooks/95-backup-boot.hook
Normal 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
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue