udev rules in /etc/udev/rules.d/ ignored/not-loaded on boot; exec manually OK at shell ?
Andrei Borzenkov
arvidjaar at gmail.com
Sat Dec 23 07:49:18 UTC 2023
On 22.12.2023 19:11, pgnd wrote:
>> You do realize that /etc/ is generally not transferred from the initrd
>> to the host? If you look into /etc/ from the host, then no files you
>> created there from the initrd will exist.
>
> it doesn't appear that the rules are written to the initrd in the first place.
>
> why not? aren't they supposed to be?
>
And why are you asking this on the systemd list instead of the list
dedicated to the program you use to create initrd?
Assuming you are using dracut - it includes files from /etc only in
host-only mode.
> if not, then how DOES one correctly write 'custom' udev rules to the initrd, and where specifically must they be located to get picked up?
Read documentation for your initrd generator or ask on the appropriate
channel.
More information about the systemd-devel
mailing list