究竟是/etc/init/failsafe.conf为了什么?我在我的 failsafe.conf 文件中禁用了睡眠定时器,这可以缩短启动时间。有什么缺点吗?我唯一能想到的就是这个链接中的这个描述,它抱怨等待时间不够长。
我认为 [30] 确实是一个很小的数字。您只是在防止用户在 /etc/network/interfaces 中有设备被删除或未连接的条目的情况。那是非常罕见的情况。将超时增加到 60 秒将减少误报和 rc-sysinit 提前启动的可能性。(即 dhcp 需要 35 秒的情况)。
failsafe.conf 文件本身的内部状态
Run Code Online (Sandbox Code Playgroud)# The point here is to wait for 2 minutes before forcibly booting # the system. Anything that is in an "or" condition with 'started # failsafe' in rc-sysinit deserves consideration for mentioning in # these messages. currently only static-network-up counts for that.
我不相信 rc-sysinit 依赖于网络。
/etc/init/failsafe.conf服务于什么目的?
failsafe.conf 的目的之一是防止 DHCP 服务器出现此类问题:https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/838968
你不应该破坏睡眠定时器。问题可能是您auto [ifname]的 /etc/network/interfaces 文件中有一行表示没有获取地址的接口。如果您使用有线连接进行安装,然后停止使用该有线连接而转而使用其他连接(例如 wlan),则经常会发生这种情况。
| 归档时间: |
|
| 查看次数: |
3311 次 |
| 最近记录: |