Bug 1109367

Summary: mount -n touches /etc/mtab
Product: [Fedora] Fedora Reporter: Lennart Poettering <lpoetter>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hannsj_uhl, jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-24 14:15:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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)