Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373425 - /etc/init.d/mtab: wrong check for symlink /etc/mtab -> /proc/mounts
Summary: /etc/init.d/mtab: wrong check for symlink /etc/mtab -> /proc/mounts
Status: RESOLVED DUPLICATE of bug 370037
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-29 02:03 UTC by tot-to
Modified: 2011-06-29 19:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tot-to 2011-06-29 02:03:06 UTC
mtab init script checks if /etc/mtab is symlink to /proc/mounts with this script:
if [ ! -w /etc/mtab -a -L /etc/mtab ]; then
    eeinfo "Skipping mtab update (non writeable symlink)"
    return 0
fi
I have checked this conditions in shell and they are not works correctly:
# ls -al /etc/mtab
lrwxrwxrwx 1 root root 12 Jun 22 03:09 /etc/mtab -> /proc/mounts
# if [ ! -w /etc/mtab -a -L /etc/mtab ]; then echo 'symlink'; else echo 'not symlink' ; fi
not symlink

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2011-06-29 19:28:28 UTC

*** This bug has been marked as a duplicate of bug 370037 ***