Score:0

Can disabling `NetworkManager-wait-online.service` be considered harmful? What are alternatives?

gb flag

My computer spends ~5s of startup time waiting for the wifi[1]. This answer promotes disabling NetworkManager-wait-online.service, and this works indeed. However, I was wondering if this may introduce other problems?

I find it quite sensical that programs may wawnt to wait for wifi to connect. But I don't want the main system to depend on those. Is it possible to somehow get rid of this dependency, without disabling NetworkManager-wait-online.service?


$ systemd-analyze critical-chain
graphical.target @7.982s
└─multi-user.target @7.982s
  └─kerneloops.service @7.968s +13ms
    └─network-online.target @7.964s
      └─NetworkManager-wait-online.service @1.580s +6.384s
        └─NetworkManager.service @1.498s +57ms
          └─dbus.service @1.494s
            └─basic.target @1.473s
              └─sockets.target @1.473s
                └─snapd.socket @1.472s +1ms
                  └─sysinit.target @1.464s
                    └─snapd.apparmor.service @1.215s +244ms
                      └─apparmor.service @1.136s +73ms
                        └─local-fs.target @1.134s
                          └─run-user-1000.mount @7.909s
                            └─swap.target @1.067s
                              └─dev-mapper-vgkubuntu\x2dswap_1.swap @1.059s +7ms
                                └─dev-mapper-vgkubuntu\x2dswap_1.device @1.055s
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.