summaryrefslogtreecommitdiff
path: root/include/init.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-08-31 21:30:29 +0100
committerLeah Rowe <leah@libreboot.org>2025-08-31 21:30:29 +0100
commit2d20be3d99b260e55798866292c46340e8f183f9 (patch)
tree2fb7e4d5f8b4e9a2daa949d4345d79f93b030466 /include/init.sh
parentc148b220d852db1d9a0037f06dc655bd93488925 (diff)
init.sh: remove unnecessary lockfile checks
we don't need these anymore, because we now know whether or not the lock file exists in these cases. this is because child/parent instance determination is now done based on the presence of that file, rather than how TMPDIR is set; and TMPDIR is now set accordingly, via more robust logic as in previous patching. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
-rw-r--r--include/init.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/init.sh b/include/init.sh
index b16d0075..557f7d57 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -78,7 +78,6 @@ xbmk_set_env()
xbmk_parent_check_tmp
- [ -f "$xbmklock" ] && err "'$xbmklock' exists. Is a build running?"
printf "%s\n" "$xbtmp" > "$xbmklock" || \
err "cannot create '$xbmklock'"; :
@@ -139,8 +138,7 @@ xbmk_child_set_tmp()
export TMPDIR="$xbtmpchk"
[ -z "${XBMK_CACHE+x}" ] && err "XBMK_CACHE unset on child"
- [ -z "${XBMK_THREADS+x}" ] && xbmk_set_threads
- e "lock" f missing && err "lock file absent on child"
+ [ -z "${XBMK_THREADS+x}" ] && xbmk_set_threads; :
}
xbmk_parent_check_tmp()