3 ms·
All this talk about why writing files is lazy. But why isn't booting lazy? Why do I have to wait for the network interface to boot even if I don't really intend
by amelius 3y ago
All this talk about why writing files is lazy. But why isn't booting lazy? Why do I have to wait for the network interface to boot even if I don't really intend to use it right now?
- wmf 3y agosystemd does this with socket-activated units.
- amelius 3y agoIt doesn't work very well, though. Booting into a tty login prompt should be possible in well under 1 second. On a modern Linux system that uses systemd, however, it still takes on the order of a minute or more.
- JdeBP 3y agoThere's a lot of seemingly purely local infrastructure that nowadays depends from networking. login calls into a PAM module, which does database lookups, which goes through nsswitch and under the covers tries to consult nscd or systemd-resolved or some such, which either have network timeouts to tick down or aren't started until boot network interfaces are configured .... Mind you, there was the same issue with NIS.
- amelius 3y agoYes, I guess the problem is that laziness shouldn't stop at service boundaries.