5 mkdir
-p /run
/udev
/rules.d
/
7 rm -f /run
/udev
/rules.d
/50-testsuite.rules
8 udevadm control
--reload
9 udevadm trigger
/dev
/sda
13 udevadm info
/dev
/sda |
grep -q -v SYSTEMD_WANTS
=foobar.service
14 udevadm info
/dev
/sda |
grep -q -v SYSTEMD_WANTS
=waldo.service
15 systemctl show
-p WantedBy foobar.service |
grep -q -v sda
16 systemctl show
-p WantedBy waldo.service |
grep -q -v sda
22 cat >/run
/udev
/rules.d
/50-testsuite.rules
<<EOF
23 SUBSYSTEM=="block", KERNEL=="sda", OPTIONS="log_level=debug"
24 ACTION!="remove", SUBSYSTEM=="block", KERNEL=="sda", ENV{SYSTEMD_WANTS}="foobar.service"
26 udevadm control
--reload
27 udevadm trigger
/dev
/sda
31 udevadm info
/dev
/sda |
grep -q SYSTEMD_WANTS
=foobar.service
32 udevadm info
/dev
/sda |
grep -q -v SYSTEMD_WANTS
=waldo.service
33 systemctl show
-p WantedBy foobar.service |
grep -q sda
34 systemctl show
-p WantedBy waldo.service |
grep -q -v sda
40 cat >/run
/udev
/rules.d
/50-testsuite.rules
<<EOF
41 SUBSYSTEM=="block", KERNEL=="sda", OPTIONS="log_level=debug"
42 ACTION!="remove", SUBSYSTEM=="block", KERNEL=="sda", ENV{SYSTEMD_WANTS}="waldo.service"
44 udevadm control
--reload
45 udevadm trigger
/dev
/sda
49 udevadm info
/dev
/sda |
grep -q -v SYSTEMD_WANTS
=foobar.service
50 udevadm info
/dev
/sda |
grep -q SYSTEMD_WANTS
=waldo.service
51 systemctl show
-p WantedBy foobar.service |
grep -q -v sda
52 systemctl show
-p WantedBy waldo.service |
grep -q sda
58 rm /run
/udev
/rules.d
/50-testsuite.rules
60 udevadm control
--reload
61 udevadm trigger
/dev
/sda
65 udevadm info
/dev
/sda |
grep -q -v SYSTEMD_WANTS
=foobar.service
66 udevadm info
/dev
/sda |
grep -q -v SYSTEMD_WANTS
=waldo.service
67 systemctl show
-p WantedBy foobar.service |
grep -q -v sda
68 systemctl show
-p WantedBy waldo.service |
grep -q -v sda