bstaletic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Apr 2014 Posts: 463
|
Posted: Sun Oct 20, 2024 12:28 pm Post subject: openrc/udev not executing rules in /run on startup |
|
|
According to /etc/init.d/udev-trigger, udev should create /dev/root -> /dev/sad1 symlink on boot, but that's not happening.
That /run/udev/rules.d/61-dev-root-link.rules is the only rule file that is generated at boot and resides in /run.
Inside /run/udevdebug.log, I have noticed a suspicious lack of "Reading rules file: /run/udev/rules.d/61-dev-root-link.rules"...
I have also noticed that after booting, executing any of the following does create the missing symlink:- udevadm trigger
- udevadm trigger --attr-match=dev --action=add
- udevadm trigger --type=devices --action=add
The latter two are taken from the same /etc/init.d/udev-trigger
Additional info:
/etc/conf.d/udev-trigger: | # /etc/conf.d/udev-trigger: config file for udev-trigger
# udev can trigger coldplug events which cause services to start and
# kernel modules to be loaded.
# Services are deferred to start in the boot runlevel.
# Set rc_coldplug="NO" if you don't want this.
# If you want module coldplugging but not coldplugging of services then you
# can disable service coldplugging in baselayout/openrc config files.
# The setting is named different in different versions.
# in /etc/rc.conf: rc_hotplug="!*" or
# in /etc/conf.d/rc: rc_plug_services="!*"
#rc_coldplug="YES"
# We can create a /dev/root symbolic link to point to the root device in
# some situations. This is on by default because some software relies on
# it,. However, this software should be fixed to not do this.
# For more information, see
# https://bugs.gentoo.org/show_bug.cgi?id=438380.
# If you are not using any affected software, you do not need this, so
# feel free to turn it off.
#rc_dev_root_symlink="YES"
# Run udevadmin monitor to get a log of all events
# in /run/udevmonitor.log
udev_monitor="YES"
# Keep udevmonitor running after populating /dev.
udev_monitor_keep_running="yes"
# Set cmdline options for udevmonitor.
# could be some of --env --kernel --udev
#udev_monitor_opts="--env" |
/etc/conf.d/udev: | # /etc/conf.d/udev: config file for udev
# Add extra command line options to udevd, use with care
# udevd --help for possible values
#udev_opts=""
# Run udevd --debug and write output to /run/udevdebug.log
# Should not be kept on as it fills diskspace slowly
udev_debug="YES" |
rc-update show sysinit: | cgroups | sysinit
devfs | sysinit
dmesg | sysinit
sysfs | sysinit
systemd-tmpfiles-setup-dev | sysinit
udev | sysinit
udev-trigger | sysinit |
Anything else that might be useful? |
|