Bug 771183

Summary: RFE: fix incorrect symlnk /etc/mtab
Product: [Fedora] Fedora Reporter: Frank Murphy <frankly3d>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 16:11:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Frank Murphy 2012-01-02 11:15:24 UTC
Description of problem: dmesg: 
16.200199] systemd[1]: /etc/mtab is not a symlink or not pointing to /proc/self/mounts. This is not supported anymore. Please make sure to replace this file by a symlink to avoid incorrect or misleading mount(8)


Version-Release number of selected component (if applicable):
util-linux-2.20.1-2.1.fc16

How reproducible: always on boot


Steps to Reproduce:
1. boot
2.
3.
  
Actual results: shows error, as /etc/mtab is not a symlink but an actual file.


Expected results: fix symlink


Additional info: Box was upgraded from F15
workaround rm /etc/mtab 
ln -s /proc/self/mounts /etc/mtab

Comment 1 Karel Zak 2012-01-10 12:16:28 UTC
That's strange, there is a post-install script in the util-linux.spec file to create the symlink.

Comment 2 Frank Murphy 2012-01-10 12:27:10 UTC
does it delete an existing mtab file?

Comment 3 Karel Zak 2012-01-10 16:18:35 UTC
%if %{mtab_symlink}
 rm -f /etc/mtab
 ln -s /proc/mounts /etc/mtab
%else
 touch /etc/mtab
 /bin/chown root:root /etc/mtab
 /bin/chmod 0644 /etc/mtab
%endif