summaryrefslogtreecommitdiff
path: root/tests/rm/one-file-system
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rm/one-file-system')
-rwxr-xr-xtests/rm/one-file-system5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/rm/one-file-system b/tests/rm/one-file-system
index c8e11eb54..db00a5b47 100755
--- a/tests/rm/one-file-system
+++ b/tests/rm/one-file-system
@@ -27,7 +27,10 @@ require_root_
# If used, these must *follow* test-lib.sh.
cleanup_()
{
- umount "$other_partition_tmpdir"
+ # When you take the undesirable shortcut of making /etc/mtab a link
+ # to /proc/mounts, unmounting "$other_partition_tmpdir" would fail.
+ # So, here we unmount a/b instead.
+ umount a/b
rm -rf "$other_partition_tmpdir"
}
. "$abs_srcdir/other-fs-tmpdir"