installer: check for process instead of locks

This commit is contained in:
Girish Ramakrishnan
2026-02-06 12:02:46 +01:00
parent 6befb64691
commit f8a44014f7

View File

@@ -24,7 +24,8 @@ function prepare_apt_once() {
log "Making sure apt is in a good state"
log "Waiting for all dpkg tasks to finish..."
while fuser /var/lib/dpkg/lock; do
# we used to check for locks, but there are many locks it seems
while pgrep -x "apt-get|apt|dpkg" >/dev/null; do
sleep 1
done