Commit 415075d6 authored by intrigeri's avatar intrigeri
Browse files

build-tails: kill processes that block the tmpfs umount operation (refs: #12009).

parent 897fd754
......@@ -29,8 +29,13 @@ cleanup() {
remove_build_dirs() {
for mountpoint in $(old_build_dirs | tac) ; do
tries=0
sudo lsof | grep --fixed-strings "$mountpoint" || true
sudo umount -f --verbose "$mountpoint"
while ! sudo umount -f --verbose "$mountpoint" && [ $tries -lt 12 ]; do
sudo fuser --ismountpoint --mount "$mountpoint" --kill
sleep 5
tries=$(expr $tries + 1)
done
sudo rm -rf "$mountpoint"
done
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment