Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 373425

Summary: /etc/init.d/mtab: wrong check for symlink /etc/mtab -> /proc/mounts
Product: Gentoo Linux Reporter: tot-to <bugs.gentoo.org.list>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 ***