Bug#1127783: apt-helper: properly wait for network (or not at all)

Yuri Arabadji <[email protected]> Fri, 13 Feb 2026 02:21:35 +0400
Newsgroups gmane.linux.debian.apt.devel
Message-ID <4f9358a3-99bd-4210-97a7-db216e0d2561__20598.6374335893$1770935011$gmane$org@deepunix.net>
Package: apt
Version: 3.0.3

I don't like how it directly invokes `/lib/systemd/systemd-networkd-wait-online` on `systemd-networkd` systems. I believe a different approach should be chosen, e.g., `systemctl start systemd-networkd-wait-online.service` with a timer that would kill that forked child on timeout. Or with a `start --no-block` and then `is-active` in loop for a predetermined period.

The reason for my complaint is the second paragraph of my issue opened @ https://github.com/systemd/systemd/issues/40523

Or maybe let the user configure the invocation, e.g., allowing them to specify `--any` or maybe just any options they desire.

Thanks.