]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
run-postinsts: Set dependency for ldconfig to avoid boot issues
authorArturo Buzarra <arturo.buzarra@digi.com>
Thu, 20 Oct 2022 13:55:31 +0000 (15:55 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Mar 2023 09:48:58 +0000 (10:48 +0100)
commit4e9d812e127dc6743f52f4881e509e8e2e833afe
treec18ef76dd7ced8efd44c65ac82e00beff31ac733
parent37e5ec204396f59ab5e796ea4a815eaecd12f9b1
run-postinsts: Set dependency for ldconfig to avoid boot issues

If a package with a postsints script requires ldconfig, the package class adds
a ldconfig postinst fragment to initialize it before. Systemd has its own
ldconfig.service to initialize it and sometimes if both services are running
at the same time in the first boot, the first one will work, but the second
one will fail with the following error:

    ldconfig[141]: /sbin/ldconfig: Renaming of /etc/ld.so.cache~ to /etc/ld.so.cache failed: No such file or directory

This commit adds a ordering dependency between them to make sure that only one
service is running at the same time.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service