]> code.ossystems Code Review - openembedded-core.git/commit
systemd: don't install systemd-hwdb-update.service
authorRoss Burton <ross.burton@intel.com>
Mon, 7 Oct 2019 19:39:07 +0000 (20:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Oct 2019 10:22:19 +0000 (11:22 +0100)
commitb1fffd407029d5936e01ba6988b9e82279d98285
tree1a78813fed1529b5c08660e49fcc9f90c16b7c4b
parent9f0f688cecbd2bad28c46f8dc467eb88486a3f6e
systemd: don't install systemd-hwdb-update.service

This service file is designed to do first-boot initialisation of the udev hwdb
database, but the condition logic to fire it is suboptimal: it can fire if not
needed, and can also not fire if needed.  Specifically it will always fire on
first boot, even though as part of rootfs generation we build the hwdb database.
On slow machines this can take a significant amount of time, the pathological
case being qemumips where the service can time out after 90 seconds of
processing.

Other distributions have also noticed this problem (specifically, at least
Debian and Clear) and solve it by using traditional postinst scripts to generate
the hwdb (which we already do) and deleting the service file (which we don't).

Finish the fix and improve boot times across all boards by deleting the service
file.

[ YOCTO #13504 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_243.bb