Comment 3 for bug 2008699

Revision history for this message
Mario Limonciello (superm1) wrote :

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