Re: How to make sure local udev rule gets into the initramfs ?
On May 18, 2015, at 1:29 PM, Sven Joachim <svenjoac@gmx.de> wrote:
> 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
Thanks Sven! I did read that section, but for some reason it didn’t occur to me that it was the answer I was looking for! /-:
But now that you point it out, it’s obvious! (-:
Enjoy!
Rick
Reply to: