Open kassane opened 5 years ago
I'm don't know very well dracut but looking on the wiki (https://wiki.archlinux.org/index.php/Dracut), it's a possible replacement for the future...
Adding dracut to the installation is very easy, just need to add the package to a category... And for the config, it's very easy to show a dracut menu only if the dracut package is installed but I don't know what is needed (The packman hook, bootloader config, ...)
I currently use this setting in pacman-hook:
/usr/share/libalpm/hook/dracut.hook
[Trigger]
Operation = Upgrade
Type = Package
Target = linux
[Action]
Description = regenerate initrd after kernel build
Depends = dracut
When = PostTransaction
Exec = /usr/bin/bash -c "dracut -H -f /boot/initramfs-linux.img --kver $(uname -r)"
So far I have not had any problems installing or upgrading.
What do you think about the possibility of alternating the choice between dracut and mkinitcpio? In the case of dracut would need pacman hook as already mentioned here.