diff options
author | Rasmus Villemoes <ravi@prevas.dk> | 2025-09-15 10:51:34 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-18 11:16:34 +0100 |
commit | 38a902b1e5d08bf62f6ba9d526b643148914836b (patch) | |
tree | 8a1e2e26fb102e5ed0c86d922c88ab6ef92d735f | |
parent | a5ba9fba0dc76c45e977f877e022c51c606dda13 (diff) | |
download | poky-38a902b1e5d08bf62f6ba9d526b643148914836b.tar.gz |
run-postinsts: use 'flock --fcntl' instead of separate fcntl-lock binary
Since v2.41, util-linux flock has understood the --fcntl option,
making it use fcntl(F_OFD_SETLK[W]) instead of flock().
(From OE-Core rev: f03393db6bb8509e88ee0ad7a8300186d8231c58)
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts index 1f3e692029..a94a769b59 100755 --- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts +++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | |||
@@ -81,7 +81,7 @@ remove_rcsd_link=1 | |||
81 | if $pm_installed; then | 81 | if $pm_installed; then |
82 | case $pm in | 82 | case $pm in |
83 | "ipk") | 83 | "ipk") |
84 | if ! `fcntl-lock --wait 30 /run/opkg.lock true`; then | 84 | if ! `flock --fcntl --wait 30 /run/opkg.lock true`; then |
85 | eval echo "Unable to obtain the opkg lock, deadlock?" $append_log | 85 | eval echo "Unable to obtain the opkg lock, deadlock?" $append_log |
86 | fi | 86 | fi |
87 | if ! eval "opkg configure $append_log"; then | 87 | if ! eval "opkg configure $append_log"; then |
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb index 5486f89ae7..f581ff3636 100644 --- a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb +++ b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | |||
@@ -12,7 +12,7 @@ S = "${UNPACKDIR}" | |||
12 | 12 | ||
13 | inherit allarch systemd update-rc.d | 13 | inherit allarch systemd update-rc.d |
14 | 14 | ||
15 | RDEPENDS:${PN} = "util-linux-fcntl-lock" | 15 | RDEPENDS:${PN} = "util-linux-flock" |
16 | 16 | ||
17 | INITSCRIPT_NAME = "run-postinsts" | 17 | INITSCRIPT_NAME = "run-postinsts" |
18 | INITSCRIPT_PARAMS = "start 99 S ." | 18 | INITSCRIPT_PARAMS = "start 99 S ." |