BTW - fwupd already uses network-online.target for this unit. One could probably argue this is a systemd bug.
> [Unit] > Description=Refresh fwupd metadata and update motd > Documentation=man:fwupdmgr(1) > After=network-online.target > > [Service] > Type=oneshot > CacheDirectory=fwupdmgr > StandardError=null > @user@ > RestrictAddressFamilies=AF_NETLINK AF_UNIX AF_INET AF_INET6 > SystemCallFilter=~@mount > ProtectKernelModules=yes > ProtectControlGroups=yes > RestrictRealtime=yes > SuccessExitStatus=2 > ExecStart=@bindir@/fwupdmgr refresh
BTW - fwupd already uses network- online. target for this unit. One could probably argue this is a systemd bug.
> [Unit] man:fwupdmgr( 1) online. target fwupdmgr Families= AF_NETLINK AF_UNIX AF_INET AF_INET6 r=~@mount dules=yes roups=yes e=yes @bindir@ /fwupdmgr refresh
> Description=Refresh fwupd metadata and update motd
> Documentation=
> After=network-
>
> [Service]
> Type=oneshot
> CacheDirectory=
> StandardError=null
> @user@
> RestrictAddress
> SystemCallFilte
> ProtectKernelMo
> ProtectControlG
> RestrictRealtim
> SuccessExitStatus=2
> ExecStart=