Table of Contents
背景
Ubuntu18及以上发行版安装完系统后,开机总是卡在“a start job is runing for wait for Network to be configured (1min 23s / no limit)”,大概两分钟,如下图,
解决方法
修改初始化失败后的尝试及等待时间,在service那一栏加上TimeoutStartSec=2sec即可,
sudo sed -i -e '/TimeoutStartSec/d' /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service
sudo sed -i -e '/RemainAfterExit=yes/aTimeoutStartSec=2sec' /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service
sudo init 6