小智 12
比禁用服务更好的想法是删除睡眠时间。为此,请/etc/init/failsafe.conf
使用您喜欢的编辑器打开,在第 25 行左右,您应该会看到以下代码行:
# Plymouth errors should not stop the script because we *must* reach
# the end of this script to avoid letting the system spin forever
# waiting on it to start.
$PLYMOUTH message –text=”Waiting for network configuration…” || :
sleep 40
$PLYMOUTH message –text=”Waiting up to 60 more seconds for network configuration…” || :
sleep 59
$PLYMOUTH message –text=”Booting system without full network configuration…” || :
Run Code Online (Sandbox Code Playgroud)
要解决您的问题,只需评论睡眠时间(在文本前添加“#”)。它应该是这样的:
# Plymouth errors should not stop the script because we *must* reach
# the end of this script to avoid letting the system spin forever
# waiting on it to start.
$PLYMOUTH message –text=”Waiting for network configuration…” || :
#sleep 40
$PLYMOUTH message –text=”Waiting up to 60 more seconds for network configuration…” || :
#sleep 59
$PLYMOUTH message –text=”Booting system without full network configuration…” || :
Run Code Online (Sandbox Code Playgroud)
小智 5
在 /etc/init/rc-sysinit.conf
代替:
start on (filesystem and static-network-up) or failsafe-boot
Run Code Online (Sandbox Code Playgroud)
和:
start on (filesystem) or failsafe-boot
Run Code Online (Sandbox Code Playgroud)