summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2019-12-18 09:41:29 +0100
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>2020-02-05 23:06:18 +0100
commitb7f9d757dd6f276203b8b04f0c0ba1c61bcf8937 (patch)
treee9118ee224ad679602b74e13c4fe4a6c7a12767f /rules
parent966ecf0011a02c7823083a7868b8589fdf850be8 (diff)
downloadsystemd-b7f9d757dd6f276203b8b04f0c0ba1c61bcf8937.tar.gz
rules: reintroduce 60-alias-kmsg.rules
Resolves:#1739353 rhel-only
Diffstat (limited to 'rules')
-rw-r--r--rules/60-alias-kmsg.rules10
-rw-r--r--rules/meson.build1
2 files changed, 11 insertions, 0 deletions
diff --git a/rules/60-alias-kmsg.rules b/rules/60-alias-kmsg.rules
new file mode 100644
index 0000000000..9c7236a730
--- /dev/null
+++ b/rules/60-alias-kmsg.rules
@@ -0,0 +1,10 @@
+SUBSYSTEM!="block", GOTO="log_end"
+KERNEL=="loop*|ram*", GOTO="log_end"
+ACTION=="remove", GOTO="log_end"
+ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="log_end"
+ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}=="1", GOTO="log_end"
+
+IMPORT{cmdline}="udev.alias"
+ENV{udev.alias}=="1", RUN+="/bin/sh -c 'echo udev-alias: $name \($links\) > /dev/kmsg'"
+
+LABEL="log_end"
diff --git a/rules/meson.build b/rules/meson.build
index 6363f8bf2e..7b5b2472de 100644
--- a/rules/meson.build
+++ b/rules/meson.build
@@ -3,6 +3,7 @@
rules = files('''
40-redhat.rules
40-elevator.rules
+ 60-alias-kmsg.rules
60-block.rules
60-cdrom_id.rules
60-drm.rules