Re: How to make sure local udev rule gets into the initramfs ?
On 2015-05-18 03:59 +0200, Rick Thomas wrote:
> In order to fix some device naming problems, I’ve made a local rule in
> /etc/udev/rules.d.
>
> The new rule needs to be included in the initramfs, but I can’t figure
> out the magic to make that happen.
If all else fails, read the documentation: have you looked at the
HOOK SCRIPTS section in initramfs-tools(8) yet?
> For kernel modules, there’s /etc/initramfs-tools/modules, but I can’t
> find anything similar for udev rules.
Write your own hook script that copies the rules file to the initramfs.
The /usr/share/initramfs-tools/hooks/dmsetup script should give you a
starting point.
Cheers,
Sven
Reply to: