[OE-core] [OE-Core][RFC PATCH 02/11] systemd: Reinstate systemd-hwdb-update.service
Otavio Salvador
otavio.salvador at ossystems.com.br
Wed Mar 18 03:03:44 UTC 2020
On Tue, Mar 17, 2020 at 12:29 PM Alex Kiernan <alex.kiernan at gmail.com> wrote:
>
> systemd supports a distribution hwdb.bin in /usr/lib/udev/hwdb.bin,
> which is used if /etc/udev/hwdb.bin is not present. When generating the
> install time hwdb, for systemd, ensure that we put it in /usr/lib/udev,
> which then ensures that at boot time we do not regenerate it, unless the
> system is marked for update.
>
> This allows fragments dropped into /etc/udev/hwdb.d to be processed
> correctly, but without requiring a first boot time build:
>
> root at qemumips:~# systemctl status systemd-hwdb-update.service
> * systemd-hwdb-update.service - Rebuild Hardware Database
> Loaded: loaded (/usr/lib/systemd/system/systemd-hwdb-update.service; static; vendor preset: disabled)
> Active: inactive (dead)
> Condition: start condition failed at Wed 2020-03-04 15:18:11 UTC; 44s ago
> |- ConditionPathExists=|!/usr/lib/udev/hwdb.bin was not met
> |- ConditionPathExists=|/etc/udev/hwdb.bin was not met
> `- ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d was not met
> Docs: man:hwdb(7)
> man:systemd-hwdb(8)
>
> Signed-off-by: Alex Kiernan <alex.kiernan at gmail.com>
Acked-by: Otavio Salvador <otavio at ossystems.com.br>
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
More information about the Openembedded-core
mailing list