udev rules in /etc/udev/rules.d/ ignored/not-loaded on boot; exec manually OK at shell ?

pgnd pgnd at dev-mail.net
Fri Dec 22 12:34:26 UTC 2023


> ANY valid rule I add -- there -- fails to be read / loaded ...

e.g.,

cat /etc/udev/rules.d/99-test.rules
	ACTION=="add|bind|change", SUBSYSTEM=="net", KERNEL=="enp5s0", RUN+="/bin/touch /etc/test-touch.txt"

cat /proc/cmdline
	... rd.udev.log_priority=debug

rm -f /etc/test-touch.txt

udevadm trigger
ls -al /etc/test-touch.txt
	-rw-r--r-- 1 root root 0 Dec 22 07:06 /etc/test-touch.txt

rm -f /etc/test-touch.txt
reboot

ls -al /etc/test-touch.txt
	(empty)

journalctl -b | grep 99-test
	(empty)

mv /etc/udev/rules.d/99-test.rules /usr/lib/udev/rules.d/
reboot

ls -al /etc/test-touch.txt
	-rw-r--r-- 1 root root 0 Dec 22 07:27 /etc/test-touch.txt

journalctl -b | grep 99-test
	(empty)






More information about the systemd-devel mailing list