MatMoul / archdi-pkg

Arch Linux Desktop Installer Packages
GNU General Public License v3.0
46 stars 27 forks source link

Suggestion: dracut init #39

Open kassane opened 5 years ago

kassane commented 5 years ago

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.

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

kassane commented 5 years ago

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.