]> 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>
Wed, 3 May 2023 14:12:46 +0000 (16:12 +0200)
committerSteve Sakoman <steve@sakoman.com>
Mon, 8 May 2023 14:15:11 +0000 (04:15 -1000)
commit5fca673d8fe0ee97dc37ed2c9941696842cd667a
tree7c02b43b867887999d3c831830db1242d4cf80f2
parentaa5bdac99e187801db56ca4bcc4d5f18b2403f40
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>
(cherry picked from commit 4e9d812e127dc6743f52f4881e509e8e2e833afe)
Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service