1 Star 0 Fork 50

zhongling.h/systemd_1

forked from src-anolis-os/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0306-rules-reintroduce-60-alias-kmsg.rules.patch 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
张彬琛 提交于 2021-01-20 13:59 . import systemd-239-29.el8.src.rpm
From b7f9d757dd6f276203b8b04f0c0ba1c61bcf8937 Mon Sep 17 00:00:00 2001
From: Jan Synacek <jsynacek@redhat.com>
Date: Wed, 18 Dec 2019 09:41:29 +0100
Subject: [PATCH] rules: reintroduce 60-alias-kmsg.rules
Resolves:#1739353
rhel-only
---
rules/60-alias-kmsg.rules | 10 ++++++++++
rules/meson.build | 1 +
2 files changed, 11 insertions(+)
create mode 100644 rules/60-alias-kmsg.rules
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhonglingh/systemd_1.git
git@gitee.com:zhonglingh/systemd_1.git
zhonglingh
systemd_1
systemd_1
a8

搜索帮助