Comment 27 for bug 2036358

Revision history for this message
Mitchell J. O'Sullivan (mosullivan93) wrote :

Hi folks,

I landed here while investigating issues running Ubuntu 22.04 (Jammy) on WSL2. I tested the proposed version and have mixed results.

NetworkManager is not installed. systemd-network is enabled, but I don't know if WSL actually uses it.

Like 249.11-0ubuntu3.10, 249.11-0ubuntu3.11 also times out for me when run as follows:
mosullivan@MITCH-PC:~$ SYSTEMD_LOG_LEVEL=debug /lib/systemd/systemd-networkd-wait-online --timeout=10
Found link 2
Found link 1
lo: link is ignored
eth0: link is not managed by networkd (yet?).
Timeout occurred while waiting for network connectivity.

However, on 249.11-0ubuntu3.11, but not on 249.11-0ubuntu3.10, I can use the --ignore option and the program exits immediately and successfully when appropriate:
mosullivan@MITCH-PC:~$ SYSTEMD_LOG_LEVEL=debug /lib/systemd/systemd-networkd-wait-online --ignore=eth0 --timeout=10
Found link 2
Found link 1
lo: link is ignored
eth0: link is ignored

This is probably indicative that Microsoft ought to tweak their integration but I thought I'd share anyway. I'm fine for now to override ExecStart (i.e. to include --ignore) so that things work smoothly again using the latest version.

Kind regards,
Mitchell O'Sullivan