On Sat, 6 Aug 2022 10:59:06 -0500
Ian Pilcher <arequipeno(a)gmail.com> wrote:
Anyone know the trick to getting dracut to include the udev rules in
/etc/udev/rules.d in the initramfs that it builds?
I'm sure that there's a way to include a specific file, but it really
seems like there ought to be a way to include all of the udev rules.
(Frankly, it seems like that ought to be the default.)
As it happens, I have been having some problems with dracut generated
initramfs' for the last few weeks. So, I have been looking into the
options.
The default initramfs is built with --hostonly, which puts in the
initramfs only the items needed to boot the particular system that
initramfs will be used for.
You can use --no-hostonly, to get a generic (larger) initramfs that
*should* contain more of the udevd rules.
The module you want is /usr/lib/dracut/modules.d/95udev-rules. You can
specify explicitly that it be included with
--add 95udev-rules
on the dracut command line.
There is also a rescue package. That is used to build a rescue kernel,
which is supposed to include everything, and might do what you want.