Get rid of /etc/mtab and store userspace options in /run
|Canonical Foundations Team|
/etc/mtab has always been a bit of a wart, as it's potentially broken to put information about mounted file system on a mountedfile system. It is out of date in rescue mode when / is read-only (but "mount" output won't tell you), and leads to bugs like bug 891688 or bug 13131.
The only reason why we still have it is that /proc/mounts is not able to store userspace-only extra options which e. g. udisks (uhelper=udisks), pm-utils (commit=XXX), or NFS use.
These days there is a better option for this. Copying response from util-linux upstream Karel Zak:
"When linked with libmount (--enable-
See Fedora, we don't use mtab any more. (Well, some utils like df have problem to de-duplicate list of mounted filesystems, but all
basic things works as expected.)"
This is worth investigating for the Q cycle.
- Get rid of /etc/mtab
+ Get rid of /etc/mtab and store userspace options in /run
|Changed in util-linux (Ubuntu):|
|status:||New → Triaged|
|assignee:||nobody → Martin Pitt (pitti)|
|importance:||Undecided → Low|
|Changed in util-linux (Ubuntu Quantal):|
|assignee:||nobody → Canonical Foundations Team (canonical-foundations)|
|no longer affects:||util-linux (Ubuntu Quantal)|