On 2023-04-25 16:31:29 (+0200), Morten Linderud wrote:
Initially I really want to move the hooks from `cryptsetup` and `systemd`:
* encrypt and sd-encrypt from core/cryptsetup * systemd and udev from core/systemd
We could maybe consider a few other hooks from [core] depending on peoples opinion? We are missing a good networking hook for systemd, and that should preferably be solved at some point.
A list of possibly other relevant mkinitcpio stuff:
Hook Package * btrfs btrfs-progs * dmraid dmraid * mdadm mdadm * mdadm_udev mdadm * lvm2 lvm2 * sd-lvm2 lvm2 * net mkinitcpio-nfs-utils * netconf mkinitcpio-netconf
There is also mkinitcpio-systemd-tool [1]. Although fairly unmaintained these days, it has a lot of features. Another user has created mkinitcpio-systemd-extras [2] which does similar things and looks less complicated (have not used it yet). It also features networking hooks (for systemd). Either might be something to consider to adapt from after moving the current systemd hooks.
# Migration
It's unclear to me how we should best move these hooks. We would need to merge them upstream into `mkinitcpio` first, then remove them from the packages.
Is a news item is enough for this? Or do we want to include a couple of package constraints to ensure people are accidentally removing their hooks?
I guess adding install notices might be enough. Or will the hooks be renamed?
What are peoples opinions?
This is very awesome and I am happy you are looking into this! <3 Best, David [1] https://github.com/random-archer/mkinitcpio-systemd-tool [2] https://github.com/wolegis/mkinitcpio-systemd-extras -- https://sleepmap.de