]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd: Handle slow to boot mips hwdb update timeouts
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Sep 2019 20:11:10 +0000 (21:11 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Sep 2019 14:26:47 +0000 (15:26 +0100)
This is a temporary workaround to avoid autobuilder failures until
https://github.com/systemd/systemd/issues/13581 is resolved.

Its being done globally even though its a mips problem for simplicity,
it doesn't hurt anything else to have a longer timeout.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_243.bb

index 3ae1516dfb503e257e7d0215ed90a31802d69c02..f0e8c569b81389c06c41bc7113b95fc2b25d5f5f 100644 (file)
@@ -298,6 +298,11 @@ do_install() {
        install -Dm 0644 ${WORKDIR}/99-default.preset ${D}${systemd_unitdir}/system-preset/99-default.preset
 }
 
+do_install_append () {
+       # Mips qemu is extremely slow, allow more time for the hwdb update
+       # This is a workaround until https://github.com/systemd/systemd/issues/13581 is resolved
+       sed -i -e s#TimeoutSec=90s#TimeoutSec=180s# ${D}${systemd_unitdir}/system/systemd-hwdb-update.service
+}
 
 python populate_packages_prepend (){
     systemdlibdir = d.getVar("rootlibdir")