anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0074-rules-don-t-limit-some-of-the-rules-to-the-add-actio.patch

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