From f8a44014f7ab61a9e24ee6676f6b10e21486ff45 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 6 Feb 2026 12:02:46 +0100 Subject: [PATCH] installer: check for process instead of locks --- scripts/installer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index e8e2a2cda..73f02434a 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -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