BUG: umount --all-targets vs /etc/mtab
Hi,
umount --all-targets does not work if /etc/mtab is a regular file and not a link to /proc/mounts.
reproduce:
$ sudo mv /etc/mtab /etc/mtab.orig $ sudo cp /proc/mounts /etc/mtab $ sudo make check TS_OPTS="--parallel=1 mount"
Test mount/umount-alltargets fails.
cu,
Rudi
Karel Zak
maintainerQuoted 9 lines · Ruediger Meier
Hi,
umount --all-targets does not work if
/etc/mtabis a regular file and not a link to/proc/mounts.reproduce:
$ sudo mv /etc/mtab /etc/mtab.orig $ sudo cp /proc/mounts /etc/mtab $ sudo make check TS_OPTS="--parallel=1 mount"
I have added a hint to the error message and umount man page that this feature is supported on systems with mtab symlink only.
Quoted 1 line
Test mount/umount-alltargets fails.
fixed by:
[ -L /etc/mtab ] || ts_skip "regular mtab"
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com