aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/mtab.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.d/mtab.in b/init.d/mtab.in
index eb9744d6..80a5ad18 100644
--- a/init.d/mtab.in
+++ b/init.d/mtab.in
@@ -12,6 +12,12 @@ depend()
start()
{
+ # /etc/mtab could be a symlink to /proc/mounts
+ if [ ! -w /etc/mtab -a -L /etc/mtab ]; then
+ eeinfo "Skipping mtab update (non writeable symlink)"
+ return 0
+ fi
+
ebegin "Updating /etc/mtab"
if ! echo 2>/dev/null >/etc/mtab; then
ewend 1 "/etc/mtab is not updateable"