FS#64557 - [dracut] alpm hooks
Attached to Project:
Arch Linux
Opened by artoo (artoo) - Monday, 18 November 2019, 13:23 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:24 GMT
Opened by artoo (artoo) - Monday, 18 November 2019, 13:23 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:24 GMT
|
Details
Description:
I have written dracut alpm hooks currently in our testing repo. They are derive from the mkinitcpio hooks. Presets are generated, no preset file is use, and the resulting initramfs has *-dracut.img appended not to conflict or overwrite mkinitcpio initramfs. Additional info: * dracut-49+ * the package source is here https://gitea.artixlinux.org/packagesD/dracut.git Steps to reproduce: Clone, build and test. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:24 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/dracut/issues/4
Saturday, 25 November 2023, 20:24 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/dracut/issues/4
It is a nonsense, these scripts should belong with dracut package, not on a wiki page.
I suggest the args variable in dracut-install script should be sourced from a configuration file.
The configuration file could declare other variables, like path where to install kernel and initramfs (instead of hardcoding /boot).
Pros:
* Create rescue image by `dracut_rescue_image=yes|no` [2].
Cons:
* For users not using systemd-boot, 50-dracut.install uses /boot/initramfs-${KERNEL_VERSION}.img as the output filename, which is not compatible with GRUB as the latter expects the kernel (vmlinuz-XXX) and the initramfs to have the same filename suffix.
Another issue is that kernel-install runs depmod in /usr/lib/kernel/install.d/50-depmod.install, which brings duplicated work as depmod.hook already handles that [3].
[1] https://gitlab.com/yan12125/aur/-/tree/65e94a47b09bfca589fb56cccb02007d38cb8370/kernel-install-hooks
[2] https://github.com/dracutdevs/dracut/blob/050/51-dracut-rescue.install#L86
[3] https://git.archlinux.org/svntogit/packages.git/tree/trunk/depmod.hook?h=packages/kmod
EDIT: Oops I misunderstand dracut's rescue images.
EDIT 2: use the permanent URL for [1] as I plan to drop it
[1] https://github.com/dracutdevs/dracut/releases/tag/054
It's been a year since the last comment. Is this still being considered?
Have a good day
https://github.com/endeavouros-team/PKGBUILDS/tree/master/eos-dracut
https://gitlab.manjaro.org/packages/extra/dracut-hook