summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorArturo Buzarra <arturo.buzarra@digi.com>2023-05-03 16:12:46 +0200
committerSteve Sakoman <steve@sakoman.com>2023-05-10 04:19:57 -1000
commita8216f8f7c1f360005de6d11f5fa867328d10163 (patch)
tree260ef533dc98b1f778fa0ad30df5665f67a94eeb /meta
parenta0602dc6b56c244ac2649fb35db724680728ba7a (diff)
downloadpoky-a8216f8f7c1f360005de6d11f5fa867328d10163.tar.gz
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. (From OE-Core rev: 5fca673d8fe0ee97dc37ed2c9941696842cd667a) 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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
index 7f72f3388a..b6b81d5c1a 100644
--- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
+++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
@@ -1,7 +1,7 @@
1[Unit] 1[Unit]
2Description=Run pending postinsts 2Description=Run pending postinsts
3DefaultDependencies=no 3DefaultDependencies=no
4After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount 4After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount ldconfig.service
5Before=sysinit.target 5Before=sysinit.target
6 6
7[Service] 7[Service]