[scripts] mhwd-live
- try to find out why pacman.db is locked in some cases - added more debug info - longer timeout before removing lock.db
This commit is contained in:
parent
4d5217184c
commit
377a6fd67a
1 changed files with 8 additions and 5 deletions
|
@ -9,12 +9,15 @@ VIDEO="$(kernel_cmdline xdriver no)"
|
||||||
seconds="0"
|
seconds="0"
|
||||||
while [ -e "/var/lib/pacman/db.lck" ];
|
while [ -e "/var/lib/pacman/db.lck" ];
|
||||||
do
|
do
|
||||||
echo 'Pacman is not ready yet. Will try again in 5 seconds.' >> /var/log/livecd.log
|
echo 'Pacman is not ready yet. Will try again in 10 seconds.' >> /var/log/livecd.log
|
||||||
seconds=$(($seconds + 5))
|
ps -ef >> /var/log/livecd.log
|
||||||
sleep 5
|
echo '----' >> /var/log/livecd.log
|
||||||
if [[ "$seconds" == "15" ]]; then
|
seconds=$(($seconds + 10))
|
||||||
# remove database lock after 15s
|
sleep 10
|
||||||
|
if [[ "$seconds" == "120" ]]; then
|
||||||
|
# remove database lock after 120s
|
||||||
# this might be related to https://github.com/manjaro/pamac/issues/25
|
# this might be related to https://github.com/manjaro/pamac/issues/25
|
||||||
|
# https://github.com/manjaro/manjaro-tools/issues/101
|
||||||
rm /var/lib/pacman/db.lck
|
rm /var/lib/pacman/db.lck
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue