From c695781753fdb3eceb78afdd947b86501209b2f2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 19 Oct 2009 09:11:08 +0200 Subject: tests: rm/one-file-system: work around umount failure * tests/rm/one-file-system (cleanup_): Unmount a/b, rather than "$other_partition_tmpdir", to accommodate those who link /etc/mtab to /proc/mounts. Reported by Gilles Espinasse in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/18508 --- tests/rm/one-file-system | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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" -- cgit v1.2.3-70-g09d2