Ubuntu 20.04 启动时等待网络配置时间过久问题的解决方法
Ubuntu 20.04 启动过程太长,发现启动时长时间等在这里:
>A start job is running for wait for network to be configured.
启动后进入系统,执行 Linux 系统启动性能统计分析命令:
```
systemd-analyze blame
2min 126ms systemd-networkd-wait-online.service
2.774s systemd-udev-settle.service
...
```
systemd-networkd-wait-online.service 这里等待了持续两分钟
解决方法:
```
Edit /etc/netplan/01-netcfg.yaml and add optional: true to any devices that may not always be available.
sudo netplan apply
```
页:
[1]