Package Details: dracut-hook 0.5.3-1

Git Clone URL: https://aur.archlinux.org/dracut-hook.git (read-only, click to copy)
Package Base: dracut-hook
Description: Install/remove hooks for dracut
Upstream URL: https://dracut.wiki.kernel.org/index.php/Main_Page
Keywords: initramfs initrd
Licenses: BSD
Submitter: kageurufu
Maintainer: jpegxguy
Last Packager: jpegxguy
Votes: 22
Popularity: 0.000660
First Submitted: 2020-01-30 21:42 (UTC)
Last Updated: 2022-02-19 23:34 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4

marscher commented on 2020-09-14 08:09 (UTC)

The shutdown module of dracut expects the initrd image to be named like initramfs-linux-$kernel_version.img, but this hook creates initramfs-linux.img. This leads to problems during shutdown, if one has to rely that the initramfs cleans up even further after systemd-shutdown. My current workaround is to create a symlink, but this has to be maintained manually or with a further pacman hook.

Moo-Crumpus commented on 2020-09-05 13:28 (UTC) (edited on 2020-09-05 13:30 (UTC) by Moo-Crumpus)

May I suggest to make the script a bit less truculent and use 'dracut -q'. I would also suggest to add a script which is similar to dracut-install, but starts at line 17. Call it dracut-update and save it for example in /usr/local/bin.

Finally, I would add some additional lines to 90-dracut-install.hook in the Triggers section: ... target = systemd target = dracut ...

tinywrkb commented on 2020-08-30 21:04 (UTC)

I moved away from this to use my own package. It makes zero sense to not have the hook rebuild on systemd update.

tinywrkb commented on 2020-06-28 19:44 (UTC) (edited on 2020-08-27 12:59 (UTC) by tinywrkb)

Maybe add Target = usr/lib/initcpio/* to 90-dracut-install.hook so systemd upgrade will trigger initramfs rebuild. edit: Actually my suggestion was wrong as that was the mkinitcpio hooks dir so maybe add usr/lib/systemd/system/sysinit.target.wants/*.

codicodi commented on 2020-04-27 23:50 (UTC)

It seems like the comparsion on line 7 in dracut-install is wrong. Its currently comparing against

'usr/lib/modules'+([^/])'/pkgbase'

while it should be

'usr/lib/modules/'+([^/])'/pkgbase'

Note: slash after "modules". This results in all kernels being rebuilt instead of the needed one.

xuanruiqi commented on 2020-04-21 13:20 (UTC)

Hmm, there's only one problem with this hook: it builds all initramfs's for each kernel I have installed, unlike mkinitcpio which builds only those for which a rebuild is required. Is there any way to fix this?

kageurufu commented on 2020-03-24 23:51 (UTC)

Sorry about the delay, I fixed that bug but only pushed to my github mirror, and forgot to push to the AUR as well.

Huge apologies everyone!

RusWolf commented on 2020-02-17 07:29 (UTC)

The error in the file /usr/share/libalpm/hooks/90-dracut-remove.hook.

Exec = /usr/local/bin/dracut-remove.sh

Necessary: Exec = / usr / share / libalpm / scripts / dracut-remove