New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run-postinsts: Set dependency for ldconfig to avoid boot issues #81
base: master
Are you sure you want to change the base?
run-postinsts: Set dependency for ldconfig to avoid boot issues #81
Conversation
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>
Additional system logs: ~# systemctl status ldconfig.service Oct 19 09:21:05 systemd[1]: Starting Rebuild Dynamic Linker Cache... run-postinsts.service: ~# systemctl status run-postinsts.service -n 999999
Oct 19 07:52:38 systemd[1]: Starting Run pending postinsts... |
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:
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