diff options
author | Jan Synacek <jsynacek@redhat.com> | 2019-12-18 09:41:29 +0100 |
---|---|---|
committer | The Plumber <50238977+systemd-rhel-bot@users.noreply.github.com> | 2020-02-05 23:06:18 +0100 |
commit | b7f9d757dd6f276203b8b04f0c0ba1c61bcf8937 (patch) | |
tree | e9118ee224ad679602b74e13c4fe4a6c7a12767f /rules | |
parent | 966ecf0011a02c7823083a7868b8589fdf850be8 (diff) | |
download | systemd-b7f9d757dd6f276203b8b04f0c0ba1c61bcf8937.tar.gz |
rules: reintroduce 60-alias-kmsg.rules
Resolves:#1739353
rhel-only
Diffstat (limited to 'rules')
-rw-r--r-- | rules/60-alias-kmsg.rules | 10 | ||||
-rw-r--r-- | rules/meson.build | 1 |
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 |