archdi-pkg icon indicating copy to clipboard operation
archdi-pkg copied to clipboard

Suggestion: dracut init

Open kassane opened this issue 6 years ago • 2 comments

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.

kassane avatar Oct 11 '19 13:10 kassane

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, ...)

MatMoul avatar Oct 16 '19 19:10 MatMoul

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.

kassane avatar Oct 19 '19 14:10 kassane