summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Villemoes <ravi@prevas.dk>2025-09-15 10:51:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-18 11:16:34 +0100
commit38a902b1e5d08bf62f6ba9d526b643148914836b (patch)
tree8a1e2e26fb102e5ed0c86d922c88ab6ef92d735f
parenta5ba9fba0dc76c45e977f877e022c51c606dda13 (diff)
downloadpoky-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-xmeta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts2
-rw-r--r--meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb2
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
81if $pm_installed; then 81if $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
13inherit allarch systemd update-rc.d 13inherit allarch systemd update-rc.d
14 14
15RDEPENDS:${PN} = "util-linux-fcntl-lock" 15RDEPENDS:${PN} = "util-linux-flock"
16 16
17INITSCRIPT_NAME = "run-postinsts" 17INITSCRIPT_NAME = "run-postinsts"
18INITSCRIPT_PARAMS = "start 99 S ." 18INITSCRIPT_PARAMS = "start 99 S ."