poky/scripts/postinst-intercepts
Alex Kiernan e3037b54ea systemd: Reinstate systemd-hwdb-update.service
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@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)

(From OE-Core rev: 78ff610e571e4d739326520c391a37ee1f1290ae)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-31 13:58:01 +01:00
..
delay_to_first_boot meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
postinst_intercept meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_desktop_database mime-xdg.bbclass: initial add 2020-01-19 13:24:38 +00:00
update_font_cache update_font_cache: fix ownership of .uuid files too 2020-01-27 16:48:08 +00:00
update_gio_module_cache meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_gtk_icon_cache gtk-icon-cache: rename intercept to update_gtk_icon_cache 2019-06-27 12:20:36 +01:00
update_gtk_immodules_cache meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_mime_database mime.bbclass: rework 2020-01-19 13:24:38 +00:00
update_pixbuf_cache meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_udev_hwdb systemd: Reinstate systemd-hwdb-update.service 2020-03-31 13:58:01 +01:00