9fc0f6
From d59e493f9b1b6645c9d1916bdc3e8b4802643ab5 Mon Sep 17 00:00:00 2001
9fc0f6
From: Lennart Poettering <lennart@poettering.net>
9fc0f6
Date: Wed, 16 Oct 2013 02:51:24 +0200
9fc0f6
Subject: [PATCH] rules: don't limit some of the rules to the "add" action
9fc0f6
9fc0f6
Devices should show up in systemd regardless whether the user invoked
9fc0f6
"udevadm trigger" or not. Before this change some devices might have
9fc0f6
suddenly disappeared due issuing that command.
9fc0f6
9fc0f6
Conflicts:
9fc0f6
	rules/99-systemd.rules.in
9fc0f6
---
9fc0f6
 rules/99-systemd.rules.in | 6 +++---
9fc0f6
 1 file changed, 3 insertions(+), 3 deletions(-)
9fc0f6
9fc0f6
diff --git a/rules/99-systemd.rules.in b/rules/99-systemd.rules.in
9fc0f6
index 3c99475..307f18f 100644
9fc0f6
--- a/rules/99-systemd.rules.in
9fc0f6
+++ b/rules/99-systemd.rules.in
9fc0f6
@@ -53,12 +53,12 @@ ACTION=="add", SUBSYSTEM=="net", KERNEL!="lo", RUN+="@rootlibexecdir@/systemd-sy
9fc0f6
 
9fc0f6
 # Pull in backlight save/restore for all firmware backlight devices
9fc0f6
 
9fc0f6
-ACTION=="add", SUBSYSTEM=="backlight", ATTR{type}=="firmware", TAG+="systemd", ENV{SYSTEMD_WANTS}+="systemd-backlight@$name.service"
9fc0f6
+SUBSYSTEM=="backlight", ATTR{type}=="firmware", TAG+="systemd", ENV{SYSTEMD_WANTS}+="systemd-backlight@$name.service"
9fc0f6
 
9fc0f6
 # Asynchronously mount file systems implemented by these modules as
9fc0f6
 # soon as they are loaded.
9fc0f6
 
9fc0f6
-SUBSYSTEM=="module", KERNEL=="fuse", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="sys-fs-fuse-connections.mount"
9fc0f6
-SUBSYSTEM=="module", KERNEL=="configfs", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="sys-kernel-config.mount"
9fc0f6
+SUBSYSTEM=="module", KERNEL=="fuse", TAG+="systemd", ENV{SYSTEMD_WANTS}+="sys-fs-fuse-connections.mount"
9fc0f6
+SUBSYSTEM=="module", KERNEL=="configfs", TAG+="systemd", ENV{SYSTEMD_WANTS}+="sys-kernel-config.mount"
9fc0f6
 
9fc0f6
 LABEL="systemd_end"