[netctl] netctl-wait-online.service doesn't wait for a profile to be selected automatically
Additional info:
* package version(s): netctl 1.28-1, reflector 2021.11-5
* A topic on the Arch Linux forums:
https://bbs.archlinux.org/viewtopic.php?pid=2056120#p2056120
Steps to reproduce:
1. `netctl disable` all profiles.
2. systemctl enable netctl-auto@wlo1
3. systemctl enable netctl-wait-online
4. pacman -Qs reflector
5. systemctl enable reflector
6. reboot
7. journalctl -b -u netctl-auto@wlo1 -u netctl-wait-online
-u reflector
What I see:
Sep 07 08:52:46 yuri2 systemd[1]: Starting Wait for the
enabled netctl profiles to come online...
Sep 07 08:52:46 yuri2 systemd[1]: Finished Wait for the
enabled netctl profiles to come online.
Sep 07 08:52:46 yuri2 systemd[1]: Starting Refresh Pacman
mirrorlist with Reflector....
Sep 07 08:52:46 yuri2 reflector[422]: error: failed to
retrieve mirrorstatus data: URLError: <urlopen error
[Errno -3] Temporary failure in name resolution>
Sep 07 08:52:46 yuri2 systemd[1]: reflector.service: Main
process exited, code=exited, status=1/FAILURE
Sep 07 08:52:46 yuri2 systemd[1]: reflector.service: Failed
with result 'exit-code'.
Sep 07 08:52:46 yuri2 systemd[1]: Failed to start Refresh
Pacman mirrorlist with Reflector..
Sep 07 08:52:48 yuri2 systemd[1]: Starting Automatic
wireless network connection using netctl profiles...
Sep 07 08:52:48 yuri2 netctl-auto[619]: Included profile
'wlo1-yuri'
Sep 07 08:52:49 yuri2 systemd[1]: Started Automatic wireless
network connection using netctl profiles.
Sep 07 08:52:53 yuri2 dhcpcd[1122]: dhcpcd-9.4.1 starting
Sep 07 08:52:53 yuri2 dhcpcd[1125]: DUID
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Sep 07 08:52:53 yuri2 dhcpcd[1125]: wlo1: connected to
Access Point: yuri
Sep 07 08:52:53 yuri2 dhcpcd[1125]: wlo1: IAID
xx:xx:xx:xx
Sep 07 08:52:54 yuri2 dhcpcd[1125]: wlo1: rebinding lease of
xx.yy.xx.yy
Sep 07 08:52:54 yuri2 dhcpcd[1125]: wlo1: probing address
xx.yy.xx.yy/24
Sep 07 08:53:00 yuri2 dhcpcd[1125]: wlo1: leased xx.yy.xx.yy
for 600 seconds
Sep 07 08:53:00 yuri2 dhcpcd[1125]: wlo1: adding route to
xx.yy.xx.yy/24
Sep 07 08:53:00 yuri2 dhcpcd[1125]: wlo1: adding default
route via xx.yy.xx.yy