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>
This commit is contained in:
Leah Rowe
2025-08-31 21:30:29 +01:00
parent c148b220d8
commit 2d20be3d99
+1 -3
View File
@@ -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()