My Ubuntu 18.04 system was taking a long time to boot, but I have analyzed the problem with Systemd and now it should boot faster.
Run this command to see which service takes the longest at boot time.
4.4 Thu Oct 17 jason@Yog-Sothoth 0: $ systemd-analyze blame | head -n 10 2min 10.235s apt-daily.service 55.956s apt-daily-upgrade.service 35.843s dev-mapper-fedora\x2droot.device 33.052s plymouth-quit-wait.service 31.171s mysql.service 28.407s systemd-journal-flush.service 27.098s nftables.service 25.097s phpsessionclean.service 20.476s snapd.seeded.service 20.302s snapd.service |
It was the apt services that were taking the longest to boot, but I could disable those services with Systemd and now my system should boot faster.
Just use sudo systemctl disable to disable unwanted services.
4.4 Thu Oct 17 jason@Yog-Sothoth 0: $ sudo systemctl disable apt-daily.service |
And
4.4 Thu Oct 17 jason@Yog-Sothoth 0: $ sudo systemctl disable apt-daily-upgrade.service |
This should work for you, do not disable required services, but I do not need my system updating automatically every time it boots.