Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion linbofs/usr/bin/linbo_partition
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down