Bug 771183 - RFE: fix incorrect symlnk /etc/mtab
Summary: RFE: fix incorrect symlnk /etc/mtab
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 16
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-02 11:15 UTC by Frank Murphy
Modified: 2012-02-21 16:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 16:11:13 UTC
Type: ---


Attachments (Terms of Use)

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


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