aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2014-08-17 11:23:52 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-08-17 11:23:52 -0500
commitc60ef5c381e9edc7e30be9dcc9cc7e123515452e (patch)
tree99775e129d2ce114e64a75592014dbe2328147ad
parentbee3f8463cbc372c344541077924ddd45ca62ef1 (diff)
mtab: add verbose level deprecation warnings
-rw-r--r--FEATURE-REMOVAL-SCHEDULE2
-rw-r--r--init.d/mtab.in5
2 files changed, 6 insertions, 1 deletions
diff --git a/FEATURE-REMOVAL-SCHEDULE b/FEATURE-REMOVAL-SCHEDULE
index 271316fc..344711f4 100644
--- a/FEATURE-REMOVAL-SCHEDULE
+++ b/FEATURE-REMOVAL-SCHEDULE
@@ -62,7 +62,7 @@ Who:
What: the mtab service script
-When: 2.0
+When: make warnings more visible in 1.0, remove in 2.0
Why: /etc/mtab should be a symbolic link to /proc/self/mounts on modern
Linux systems
diff --git a/init.d/mtab.in b/init.d/mtab.in
index 61b57bd8..e38d33e7 100644
--- a/init.d/mtab.in
+++ b/init.d/mtab.in
@@ -17,6 +17,11 @@ start()
fi
ebegin "Updating /etc/mtab"
+ vewarn "The support for updating /etc/mtab as a file is"
+ vewarn "deprecated and will be removed in the future."
+ vewarn "Please run the following command as root on your system."
+ vewarn
+ vewarn "ln -snf /proc/self/mounts /etc/mtab"
if ! echo 2>/dev/null >/etc/mtab; then
ewend 1 "/etc/mtab is not updateable"
return 0