diff --git a/linbofs/usr/bin/linbo_partition b/linbofs/usr/bin/linbo_partition index ee900006..1b6df02a 100755 --- a/linbofs/usr/bin/linbo_partition +++ b/linbofs/usr/bin/linbo_partition @@ -211,7 +211,13 @@ fi killalltorrents cd / -mount | grep -q ' /cache ' && umount /cache &> /dev/null && sleep 3 +# Retry umount up to 10 times: linbo_gui periodically re-mounts /cache for +# status polling, racing against a single umount + sleep. +for _ in 1 2 3 4 5 6 7 8 9 10; do + mount | grep -q ' /cache ' || break + umount /cache &> /dev/null + sleep 1 +done if mount | grep -q ' /cache '; then echo "Cannot unmount /cache." >&2 exit 1