Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: dracut init #39

Open
kassane opened this issue Oct 11, 2019 · 2 comments
Open

Suggestion: dracut init #39

kassane opened this issue Oct 11, 2019 · 2 comments

Comments

@kassane
Copy link

kassane commented Oct 11, 2019

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
Copy link
Owner

MatMoul commented Oct 16, 2019

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
Copy link
Author

kassane commented Oct 19, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants