From 4dd4c50ba74af94a711435a5f94e733ea61d1814 Mon Sep 17 00:00:00 2001 From: esche Date: Mon, 30 Sep 2024 21:11:12 +0200 Subject: [PATCH] Dracut explanation added --- README.md | 16 +++++++++++++--- paccache.hook | 11 ----------- paccache2.hook | 11 ----------- unneeded.hook | 10 ---------- 4 files changed, 13 insertions(+), 35 deletions(-) delete mode 100644 paccache.hook delete mode 100644 paccache2.hook delete mode 100644 unneeded.hook diff --git a/README.md b/README.md index e0331d2..111dd1b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,17 @@ -# Pacman-Hooks + -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/) -There is very much missing. I will document this another time. \ No newline at end of file +## 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. + diff --git a/paccache.hook b/paccache.hook deleted file mode 100644 index d295299..0000000 --- a/paccache.hook +++ /dev/null @@ -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 diff --git a/paccache2.hook b/paccache2.hook deleted file mode 100644 index f3ce596..0000000 --- a/paccache2.hook +++ /dev/null @@ -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 diff --git a/unneeded.hook b/unneeded.hook deleted file mode 100644 index 732ea5a..0000000 --- a/unneeded.hook +++ /dev/null @@ -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'"