diff options
author | Arturo Buzarra <arturo.buzarra@digi.com> | 2022-10-20 15:55:31 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-30 10:49:01 +0100 |
commit | 10b42adf56af94c281b491c6ac57e14242f7dd3b (patch) | |
tree | 6894a66977416b7714b6130e782c451f28764025 /meta | |
parent | 2d3dc116fde28692a69589f1a74042b8505a3bfc (diff) | |
download | poky-10b42adf56af94c281b491c6ac57e14242f7dd3b.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: 4e9d812e127dc6743f52f4881e509e8e2e833afe)
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service | 2 |
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] |
2 | Description=Run pending postinsts | 2 | Description=Run pending postinsts |
3 | DefaultDependencies=no | 3 | DefaultDependencies=no |
4 | After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount | 4 | After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount ldconfig.service |
5 | Before=sysinit.target | 5 | Before=sysinit.target |
6 | 6 | ||
7 | [Service] | 7 | [Service] |