ubuntu が起動時にエラーを吐いてネットワーク待ちで時間がかかる。
Failed to start Wait for Network to be Configured.
ネットワークを見てみる。
基本的に、networkdに管理させてないが、念のために確認する。
takuya@:~$ networkctl IDX LINK TYPE OPERATIONAL SETUP 1 lo loopback carrier unmanaged 2 eth0 ether carrier unmanaged 3 br0 bridge routable unmanaged 4 lxcbr0 bridge no-carrier unmanaged 5 docker0 bridge no-carrier unmanaged 52 br-8938dceff93b bridge routable unmanaged 54 veth61a80a4 ether carrier unmanaged
network-onlineを編集
systemd で上記のネットワークを無視してあげる
takuya@:~$ /lib/systemd/systemd-networkd-wait-online --help systemd-networkd-wait-online [OPTIONS...] Block until network is configured. -h --help Show this help --version Print version string -q --quiet Do not show status information -i --interface=INTERFACE[:MIN_OPERSTATE[:MAX_OPERSTATE]] Block until at least these interfaces have appeared --ignore=INTERFACE Don't take these interfaces into account -o --operational-state=MIN_OPERSTATE[:MAX_OPERSTATE] Required operational state --any Wait until at least one of the interfaces is online --timeout=SECS Maximum time to wait for network connectivity See the systemd-networkd-wait-online.service(8) man page for details. takuya@:~$
設定を編集
sudo systemctl edit systemd-networkd-wait-online
無視を追加
[Service] ExecStart=/lib/systemd/systemd-networkd-wait-online \ --ignore=docker0 \ --ignore=lxcbr0 \ --ignore=eth0 \ --timeout=20
後は様子見。