systemd: Make it build with hwdb disabled
PATCH 1/1 systemd: Make it build with hwdb disabled
If hwdb is disabled, then systemd-hwdb-update.service does not exists. Do not try to modify it in this case.
Signed-off-by Peter Kjellerstedt <[email protected]>
--- meta/recipes-core/systemd/systemd_243.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
meta/recipes-core/systemd/systemd_243.bb +4 -3
@@ -299,9 +299,10 @@ do_install() { } 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 + # 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 + [ ! -e ${D}${systemd_unitdir}/system/systemd-hwdb-update.service ] || + sed -i -e s#TimeoutSec=90s#TimeoutSec=180s# ${D}${systemd_unitdir}/system/systemd-hwdb-update.service } python populate_packages_prepend (){
Signature · 1 line
2.21.0