Bug 44176 - systemd: /etc/mtab not the correct symbolic link
systemd: /etc/mtab not the correct symbolic link
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: General
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
: systemd
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-31 09:25 CEST by Philipp Hahn
Modified: 2019-09-03 08:27 CEST (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2017-03-31 09:25:24 CEST
systemd complains about "/etc/mtab" not being a symbolic link to "/proc/mounts":
# dmesg
> 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) output.

This already seems to be the case, but systemd complaints anyway:
# ls -l /etc/mtab /proc/self/mounts /proc/mounts
lrwxrwxrwx 1 root root 12 Mär 28 12:17 /etc/mtab -> /proc/mounts
lrwxrwxrwx 1 root root 11 Mär 29 13:22 /proc/mounts -> self/mounts
-r--r--r-- 1 root root  0 Mär 29 13:22 /proc/self/mounts

# gzip -dc /boot/initrd.img-`uname -r` | cpio -t -v | grep mtab
lrwxrwxrwx   1 root     root           12 Mar 28 12:16 etc/mtab -> /proc/mounts


Strangely enough I see this mostly directly after the reboot after installation, but not after further reboots.
Comment 1 Philipp Hahn univentionstaff 2019-09-03 08:27:20 CEST
UCS-4.2 is EOL
Problem seems to not exists with UCS-4.4