daandemeyer / rpms / systemd

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