fwupd/data/motd
Paul Menzel bf1b876e56 data/motd/fwupd-refresh: Only order after network.target
From [Lennart’s answer on systemd-devel][1]:

> fwupd.target should not list the various network management solutions,
> that is unnecessary, and ordering after network.target should be
> sufficient to achieve the same, in a generic fashion. i.e. network
> managers should order themselves before network.target, so that
> ordering yourself after that automatically orders you after all
> implementations at once...

So, remove the unneeded targets. As the service unit is not
installed/enabled, and instead called by a timer, the system will most
probably be online already.

[1]: https://lists.freedesktop.org/archives/systemd-devel/2020-March/044205.html
     "Best practices for starting unit only if network is online"
2020-04-01 13:14:41 -05:00
..
85-fwupd.motd.in Add support to integrate into the motd (Fixes: #1270) 2019-08-22 06:39:02 +01:00
fwupd-refresh.preset Add a systemd preset file for fwupd-refresh.service 2019-10-20 14:31:13 -05:00
fwupd-refresh.service.in data/motd/fwupd-refresh: Only order after network.target 2020-04-01 13:14:41 -05:00
fwupd-refresh.timer Add support to integrate into the motd (Fixes: #1270) 2019-08-22 06:39:02 +01:00
meson.build trivial: correct a fwupd-refresh.service filling error 2020-02-02 11:27:20 +00:00
README.md Add support to integrate into the motd (Fixes: #1270) 2019-08-22 06:39:02 +01:00

Message of the day integration

Message on the day integration is used to display the availability of updates when connecting to a remote console.

It has two elements:

  • Automatic firmware metadata refresh
  • Message of the day display

Automatic firmware metadata refresh

This uses a systemd timer to run on a regular cadence. To enable this, run

# systemctl enable fwupd-refresh.timer

Motd display

Motd display is dependent upon the availability of the update-motd snippet consumption service such as pam_motd.