1 Star 0 Fork 22

jammyjellyfish/initscripts

forked from src-openEuler/initscripts 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-initscripts-add-udev-wait-dependency-for-network.patch 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-12-14 14:35 . Package init
From 6f77c3059cb9aceea5ed9fc6f434577214716476 Mon Sep 17 00:00:00 2001
From: Hui Wang <john.wanghui@huawei.com>
Date: Wed, 19 Oct 2016 19:50:29 +0800
Subject: [PATCH] initscripts: add udev-wait dependency for network
We changed systemd so that ethernet interface can be renamed successfully
even though the name has be taken, but rename operations will take some
seconds. Systemd start service concurrent, while systemd-udevd is renaming
ethernet interfaces, network service start to configure them, once ip was
set, the rename operation will fail with the error 'Device or resource busy'
So network service should start after ethernet rename finished, that means
all uevents are be done.
udev-wait.service will be added to customize packages, such as config-os-XX.
---
rc.d/init.d/network | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/rc.d/init.d/network b/etc/rc.d/init.d/network
index 2b8c191..91a8043 100755
--- a/etc/rc.d/init.d/network
+++ b/etc/rc.d/init.d/network
@@ -8,7 +8,7 @@
#
### BEGIN INIT INFO
# Provides: $network
-# Should-Start: iptables ip6tables NetworkManager-wait-online NetworkManager $network-pre
+# Should-Start: iptables ip6tables NetworkManager-wait-online NetworkManager udev-wait $network-pre
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jammyjellyfish/initscripts.git
git@gitee.com:jammyjellyfish/initscripts.git
jammyjellyfish
initscripts
initscripts
master

搜索帮助