Remove entries from list

Note that for drop-in files, if one wants to remove entries from a setting that is parsed as a list (and is not a dependency), such as AssertPathExists= (or e.g. ExecStart= in service units), one needs to first clear the list before re-adding all entries except the one that is to be removed. Example:

[Unit]
# Reset all assertions and then re-add the condition we want
AssertPathExists=
AssertPathExists=/srv/www

Dependencies (After=, etc.) cannot be reset to an empty list, so dependencies can only be added in drop-ins.

systemd-networkd-wait-online.service

On Debian 12, for some reason, /lib/systemd/systemd-networkd-wait-online --any --ipv6 still blocks when all interfaces have appeared, and it’s the same without --any.

Therefore if you have also encountered this issue and the interface name is constant, add -i <interface> to fix this issue.

# /etc/systemd/system/systemd-networkd-wait-online.service.d/override.conf
[Service]
ExecStart=
ExecStart=/lib/systemd/systemd-networkd-wait-online -i eth0 --ipv6