15.09.2018 14:41, Andrei Verovski пишет:
Hi !
How to include custom udev rule into initramfs ? I edited "/usr/lib/dracut/modules.d/95udev-rules/module-setup.sh"
You should never edit files that are part of package.
added "inst_rules 62-my.rules", yet it doesn't work.
Without knowing what exactly you did this statement has no meaning. Where your rule is located, how you called dracut, what is dracut configuration ...
Anyone can suggest right way to do this ?
This depends on whether your rule is needed only in dracut or also in running system and where you want to place this rule. In general, rules under /usr/lib/udev/rules.d should always work, under /etc/udev/rules.d - be skipped in non-hostonly mode. You should then see corresponding message during dracut run. Or you can always use install_items or install_optional_items in configuration that simply unconditionally add corresponding file without any rules magic.
Thanks in advance. "dracut -vf" lists all stuff it is including into initramfs, so I can say for sure my mod doesn't work.
Dracut copies *some* udev rules from etc/udev/rules.d/ usr/lib/udev/rules.d/ but not *all*, only selected by some config I'm not aware about.
Thanks in advance.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org