First sync

This commit is contained in:
BrainwreckedTech 2019-09-17 20:28:13 -04:00
parent caecdf0ace
commit e5818c7362
7 changed files with 74 additions and 0 deletions

14
00-autosnap-zfs.hook Normal file
View File

@ -0,0 +1,14 @@
[Trigger]
Type=Package
Operation=Install
Operation=Upgrade
Operation=Remove
Target=*
[Action]
Description=Making ZFS snapshot...
Depends=zfs-utils
When=PreTransaction
Exec=/usr/bin/sh -c "/usr/bin/zfs snapshot -r $(/usr/bin/findmnt -n / | /usr/bin/awk '{print $2}')@$(date +%Y-%m-%d_%H-%M-%S)_pacman_pre"
AbortOnFail
NeedsTargets

10
89-rename-lts-kernel.hook Normal file
View File

@ -0,0 +1,10 @@
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = /boot/vmlinuz-linux-lts
[Action]
Description = Renaming vmlinuz-linux-lts to resc-lts.krn...
When = PostTransaction
Exec = /usr/bin/mv /boot/vmlinuz-linux-lts /boot/resc-lts.krn

10
89-rename-zen-kernel.hook Normal file
View File

@ -0,0 +1,10 @@
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/vmlinuz-linux-zen
[Action]
Description = Renaming vmlinuz-linux-zen to arch-zen.krn...
When = PostTransaction
Exec = /usr/bin/mv /boot/vmlinuz-linux-zen /boot/arch-zen.krn

12
nvidia.hook Normal file
View File

@ -0,0 +1,12 @@
[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia
[Action]
Depends=mkinitcpio
When=PostTransaction
Exec=/usr/bin/mkinitcpio -P

10
orphans.hook Normal file
View File

@ -0,0 +1,10 @@
[Trigger]
Operation=Install
Operation=Upgrade
Type=Package
Target=*
[Action]
Description=Finding orphans...
When=PostTransaction
Exec=/usr/bin/bash -c 'echo -e "=> None found.\r=> $(pacman -Qqtd | tr "\n" " ")"'

9
refind.hook Normal file
View File

@ -0,0 +1,9 @@
[Trigger]
Operation=Upgrade
Type=Package
Target=refind-efi
[Action]
Description = Updating rEFInd on ESP
When=PostTransaction
Exec=/usr/bin/refind-install

9
systemd-boot.hook Normal file
View File

@ -0,0 +1,9 @@
[Trigger]
Type = File
Operation = Upgrade
Target = boot/EFI/systemd/systemd-bootx64.efi
[Action]
Description = Upgrading systemd-boot...
When = PostTransaction
Exec = /usr/bin/bootctl update