chiark / gitweb /
mount: tell /bin/mount to never touch /etc/mtab
authorLennart Poettering <lennart@poettering.net>
Sun, 15 Jun 2014 22:53:02 +0000 (00:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 15 Jun 2014 22:53:02 +0000 (00:53 +0200)
commit8eb5a6e001afd3da22fe4c16fe786a362d46733e
treecbb0f69ee4150fbe46298d3245cd05f9f4c27fcb
parent2db7648aa8bc9a31342d82a3fa0e63664cae5431
mount: tell /bin/mount to never touch /etc/mtab

/etc/mtab should die die die. It's sad enough util-linux still contains
support for it, but we don't have to partake in that charade, so let's
turn this off.

This is in-line with the fact that since years we already have been
"tainting" systemd if we detect /etc/mtab not being a symlink...

Of course, util-linux is currently broken, and still touches /etc/mtab,
weven if we pass "--no-mtab" to it:

https://bugzilla.redhat.com/show_bug.cgi?id=1109367

But hey, let's hope that gets fixed quickly, even if total removal of
/etc/mtab support from util-linux might not happen so quickly...
src/core/mount.c