Skip to contentSkip to conversation

BUG: umount --all-targets vs /etc/mtab

DISCUSSION Ruediger Meier 2 participants 2 messages May 25, 2014 – May 26, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw
Quoted 9 lines · Ruediger Meier

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" 

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