Let uses know how long they need to wait (max)

Co-authored-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
yubiuser 2022-04-07 09:11:53 +02:00 committed by GitHub
parent c0a2ab7b77
commit b33434d02a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ os_check() {
# This function waits for dpkg to unlock, which signals that the previous apt-get command has finished.
test_dpkg_lock() {
i=0
printf " %b Waiting for package manager to finish\\n" "${INFO}"
printf " %b Waiting for package manager to finish (up to 30 seconds)\\n" "${INFO}"
# fuser is a program to show which processes use the named files, sockets, or filesystems
# So while the lock is held,
while fuser /var/lib/dpkg/lock >/dev/null 2>&1