aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-rw-r--r--init.d/mtab.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/init.d/mtab.in b/init.d/mtab.in
index 8e5bc2fb..0cd73696 100644
--- a/init.d/mtab.in
+++ b/init.d/mtab.in
@@ -12,12 +12,16 @@ depend()
start()
{
- if [ -L /etc/mtab ]
- then
- einfo "Skipping mtab update (mtab is a symbolic link)"
+ if [ -L /etc/mtab ]; then
return 0
fi
+ ewarn "Please run the following command as root on your system."
+ ewarn
+ ewarn "ln -snf /proc/self/mounts /etc/mtab"
+ ewarn
+ ewarn "The support for updating /etc/mtab as a file is"
+ ewarn "deprecated and will be removed in the future."
ebegin "Updating /etc/mtab"
if ! echo 2>/dev/null >/etc/mtab; then
ewend 1 "/etc/mtab is not updateable"