gentooup.sh: more verbose info about lock

This commit is contained in:
layman 2023-01-24 17:55:06 +01:00
parent 5764e60f0e
commit 9a27a6a7f6

View file

@ -2,10 +2,12 @@
LOCKFILE=/usr/portage/gentooup.lock
exec {FD_LOCK}<>"$LOCKFILE"
echo "Try to acquire lock for $LOCKFILE"
if ! flock -x -w 60 "$FD_LOCK" ; then
echo "Could not acquire lock for $LOCKFILE"
exit 1
fi
echo "Lock acquired"
PORTAGE_OPTIONS=("--keep-going" "--autounmask-write" "--binpkg-changed-deps=y" "--autounmask-continue")