diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-28 13:03:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-30 22:22:19 +0000 |
commit | 7c916d8f1bfd6b8036311d534a08b2f71464a3cd (patch) | |
tree | ac88bce63c27c7f53f50440e7ea02bd26c134ca2 /meta/files/fs-perms.txt | |
parent | 4e6a20efa9dc7bbb516fa56b560289a307d2ca40 (diff) | |
download | poky-7c916d8f1bfd6b8036311d534a08b2f71464a3cd.tar.gz |
run-postinsts: Add workaround for locking deadlock issue
When run-postinsts is installed, a service is added for system which can run
while the package is still being installed. This calls "opkg configure" and if
package management is still running, it can deadlock and error.
To work around this, call fcntl-lock on the opkg lock file and if the lock
was held, it would wait to obtain it. This wait gives the package management
time to finish the install before the configure can then take the lock and run.
Note the dependency in SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS otherwise we'd see
sstate selftest failures.
Also ensure that if the configure fails, the scripts returns an error. This
applies to opkg and dpkg.
(From OE-Core rev: 96d37df074dc1fe1578c1406235dff7e328b62b7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files/fs-perms.txt')
0 files changed, 0 insertions, 0 deletions