1 Star 0 Fork 9

ocs-commit-check/systemd

forked from OpenCloudOS Stream/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-wait-online-by-default-not-all-interface-need-to-be-.patch 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
diff -uprN systemd-255.orig/src/network/wait-online/manager.c systemd-255/src/network/wait-online/manager.c
--- systemd-255.orig/src/network/wait-online/manager.c 2024-12-10 17:04:34.857160575 +0800
+++ systemd-255/src/network/wait-online/manager.c 2024-12-10 17:05:34.936516554 +0800
@@ -178,7 +178,9 @@ bool manager_configured(Manager *m) {
r = manager_link_is_online(m, l,
(LinkOperationalStateRange) { _LINK_OPERSTATE_INVALID,
_LINK_OPERSTATE_INVALID });
- if (r < 0 && !m->any) /* Unlike the above loop, unmanaged interfaces are ignored here. */
+ /* Unlike the above loop, unmanaged interfaces are ignored here. Also, Configured but offline
+ * interfaces are ignored. See issue #29506. */
+ if (r < 0 && r != -EADDRNOTAVAIL && !m->any)
return false;
if (r > 0) {
if (m->any)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-commit-check/systemd.git
[email protected]:ocs-commit-check/systemd.git
ocs-commit-check
systemd
systemd
master

搜索帮助