Apparently the reason my computer has been taking 2 minutes to boot was a faulty network mount
I’m pretty sure the main system startup bottleneck is me typing the disk encryption passphrase.
Combine that with the 20-30 seconds my system takes to do bios memory training on the DDR5 ram and we’re practically back to the “go make some coffee while the system boots up” days 🤦
Glad I haven’t built a modern chipset PC yet, didn’t realize it was this bad.
I wish to replace it with a yubikey, but I don’t even know if it’s supported.
It is, I have it set up on my laptop. It’s a bit finicky in how it works and it’s not easy to setup, but it is possible.
Does it work by emulating the keyboard and typing in the password? Or by the encrypted protocol that works using the on device secret?
You can use systemd-analyze blame
if you want raw numbers:
This command prints a list of all running units, ordered by the time they took to initialize. This information may be used to optimize boot-up times.
Good way to see if your systemd also waits 2 minutes for a network connection which already exists but it can’t see it because systemd doesn’t do the networking (lxc containers on proxmox in my case) lol.
Also see systemd-analyze.
systemd also waits 2 minutes for a network connection which already exists but it can’t see it because systemd doesn’t do the networking
Any way to speed this up? On my system in every boot it waits for network for 30s.
In my case i masked the service because like i said, inside the lxc container there is no networking to do, it’s done on the host (proxmox). Note that disabling the service in my case was not enough since it could be invoked by other services, and then you would have to wait again.
See this for further info and maybe arguments why you shouldn’t do it.
Systemd has so many neat and useful tools that they never tell anyone about :(
… systemd-analyze plot > plot.svg
Systemd can generate SVGs? Damn thats “bloat” but also unexpectedly fancy
If you go far enough, everything is.
But SVGs are one of the few image types that can be human readable and editable