Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/imageroot/usr/local/agent/bin/extract-image
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ image=${1:?missing image URL argument}
set -e

# Prevent concurrent execution of this script with a lock file opened with
# an arbitrary high FD number, like 201. The lock is released when the
# script completes:
exec 201>"${AGENT_STATE_DIR:?}"/.extract-image.lock
# an arbitrary high FD number, like 201. The lock is created in the
# working directory, and is released when the script completes:
exec 201>.extract-image.lock
flock --verbose -n 201

lst_file=".imageroot.lst"
Expand Down
Loading