我的搭载有 Ubuntu 16.04 的 Thinkstation P910 启动时间非常长。
systemd-analzye 给出了以下输出:
Startup finished in 27.997s (firmware) + 5.328s (loader) + 1min 36.900s (kernel) + 12.821s (userspace) = 2min 23.048s
我的 /etc/fstab 与 blkid 的输出匹配。所有 UUID 均正确。
知道为什么内核要花这么长时间以及我该如何修复它吗?
编辑:
$ systemd-analyze blame
9.115s NetworkManager-wait-online.service
6.880s plymouth-quit-wait.service
2.444s apt-daily-upgrade.service
$ systemd-analyze critical-chain
graphical.target @16.929s
└─multi-user.target @16.929s
└─getty.target @16.929s
└─[email protected] @16.929s
└─rc-local.service @10.041s +2ms
└─network-online.target @10.039s
└─NetworkManager-wait-online.service @923ms +9.115s
└─NetworkManager.service @875ms +46ms
└─dbus.service @785ms
└─basic.target @776ms
└─sockets.target @776ms
└─snapd.socket @772ms +1ms
└─sysinit.target @771ms
└─apparmor.service @707ms +62ms
└─local-fs.target @706ms
└─run-user-124.mount @10.212s
└─local-fs-pre.target @154ms
└─systemd-remount-fs.service @149ms +3ms
└─systemd-journald.socket @103ms