0 Star 0 Fork 32

Liquor/dracut

forked from src-openEuler/dracut 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
dracut-network-fixed-net-rules-issue-hence-systemd-r.patch 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
hexiaowen 提交于 2019-09-30 10:37 . Package init
From b586f1d465f7454aa55bcf623409c6d86215ab15 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 25 Sep 2019 22:38:58 +0800
Subject: [PATCH] dracut-network: fixed net-rules issue hence systemd rename
netif when anaconda pxe install
---
modules.d/35network-legacy/net-genrules.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules.d/35network-legacy/net-genrules.sh b/modules.d/35network-legacy/net-genrules.sh
index e6035e5..b111c0b 100755
--- a/modules.d/35network-legacy/net-genrules.sh
+++ b/modules.d/35network-legacy/net-genrules.sh
@@ -103,8 +103,10 @@ command -v fix_bootif >/dev/null || . /lib/net-lib.sh
# Fixme: waiting for the interface as well.
else
cond='ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}!="wlan|wwan"'
+ cond2='ACTION=="move", SUBSYSTEM=="net", ENV{DEVTYPE}!="wlan|wwan"'
# if you change the name of "91-default-net.rules", also change modules.d/80cms/cmssetup.sh
echo "$cond, $runcmd" > /etc/udev/rules.d/91-default-net.rules
+ echo "$cond2, $runcmd" >> /etc/udev/rules.d/91-default-net.rules
if [ "$NEEDNET" = "1" ]; then
echo 'for i in /tmp/net.*.did-setup; do [ -f "$i" ] && exit 0; done; exit 1' >$hookdir/initqueue/finished/wait-network.sh
fi
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liquor1/dracut.git
[email protected]:liquor1/dracut.git
liquor1
dracut
dracut
master

搜索帮助