On 25/09/2019 04:07, Chen Qi wrote:
We have updated hwdb via postinstall, updated systemd users via
'systemd_create_users', so there's no need to update /etc. Mark it
as updated to avoid unnecessary services like systemd-hwdb-update.service
to run.
This would solve timeout problem on qemumips. So also remove the
timeout change for systemd-hwdb-update.service.
I was going to send almost this exact patch, *but* I don't think it's right.
Arbitrary service files can use ConditionNeedsUpdate, and marking /etc
as updated because we don't want hwdb-update to run also means we don't
execute ldconfig.service, systemd-sysusers.server, or any other service
files that were added and expected to be ran on first boot.
Some other distributions rip out systemd-hwdb-update entirely and use
traditional postinsts to handle it:
Debian:
https://salsa.debian.org/systemd-team/systemd/blob/master/debian/rules#L221
Clear:
https://github.com/clearlinux-pkgs/systemd/blob/master/systemd.spec#L419
I believe that we should do the same.
Ross
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core