2020-02-15 14:38:13 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Umount all FUSE filesystems mounted below /tmp and /var/tmp.
|
|
|
|
#
|
|
|
|
# Useful when you have lots of broken mounts after something in
|
|
|
|
# the test suite went wrong.
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
2020-10-15 17:49:17 +02:00
|
|
|
MOUNTS=$(mount | grep ' type fuse\.' | grep 'on /var/tmp/\|on /tmp/\|on /mnt/ext4-ramdisk/' | cut -d' ' -f 3)
|
2020-02-15 14:38:13 +01:00
|
|
|
|
|
|
|
for i in $MOUNTS ; do
|
|
|
|
echo "Unmounting $i"
|
|
|
|
fusermount -u -z "$i"
|
|
|
|
done
|