Dracut explanation added

This commit is contained in:
esche 2024-09-30 21:11:12 +02:00
parent bf67ccc451
commit 4dd4c50ba7
4 changed files with 13 additions and 35 deletions

View file

@ -1,7 +1,17 @@
# Pacman-Hooks <img width=150 height=50 align=right src=https://archlinux.org/static/logos/archlinux-logo-light-1200dpi.7ccd81fd52dc.png">
My current pacman hooks. Place this files in /etc/pacman.d/hooks on arch-based distros to work. # Arch-Config
In this repository I will track some of the customizings I did on my Arch System
At this time most changes are missing. I will try to change this over time.
## Pacman-Hooks
My current pacman hooks
Dependencies: [pacman-contrib](https://archlinux.org/packages/community/x86_64/pacman-contrib/) Dependencies: [pacman-contrib](https://archlinux.org/packages/community/x86_64/pacman-contrib/)
There is very much missing. I will document this another time. ## Dracut
I use my system with systemd-boot and UKIs. To generate them I use dracut-ukify. Just install this package and remove mkinitcpio.
You should test this once with pacman -S linux. If the next boot fails fallback to your old boot entries for debugging.

View file

@ -1,11 +0,0 @@
[Trigger]
Operation = Remove
Operation = Install
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Keep the last cache of currently installed packages
When = PostTransaction
Exec = /usr/bin/paccache -r

View file

@ -1,11 +0,0 @@
[Trigger]
Operation = Remove
Operation = Install
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Delete cache of uninstalled packages
When = PostTransaction
Exec = /usr/bin/paccache -ruk1

View file

@ -1,10 +0,0 @@
[Trigger]
Operation = Remove
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Possibly unneeded packages (e.g. dependency cycles)
When = PostTransaction
Exec = /usr/bin/bash -c "(pacman -Qqd | pacman -Rsup - && echo 'uninstall all with »pacman -Qqd | pacman -Rsu -«') || echo '==> None found'"