Bug 1109367 - mount -n touches /etc/mtab
Summary: mount -n touches /etc/mtab
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-13 18:33 UTC by Lennart Poettering
Modified: 2014-11-10 17:24 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-10-24 14:15:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lennart Poettering 2014-06-13 18:33:56 UTC
mount's "-n" switch is supposedly useful to tell it to not touch /etc/mtab. But well, it will still create it just not write anything to it. Hence, if you boot up with no /etc/mtab at all, and you invoke mount with "-n", then the file will exist in an invalid state after that...

(Also, it's probably time to just remove support for /etc/mtab, and just support symlinked setups. But anyway, that's a different story. For now all I want is that "-n" does what it is advertised for: not touch /etc/mtab at all, and that includes not creating it.)

Comment 1 Karel Zak 2014-06-17 14:12:13 UTC
Fixed by upstream commit 150e696dacafb2a2583e9c5dae736480b84d6673.

Comment 2 Karel Zak 2014-10-24 14:15:18 UTC
Fixed in v2.25 (f21)


Note You need to log in before you can comment on or make changes to this bug.