commit: c60ef5c381e9edc7e30be9dcc9cc7e123515452e
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Sun Aug 17 16:23:52 2014 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Aug 17 16:23:52 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=c60ef5c3
mtab: add verbose level deprecation warnings
---
FEATURE-REMOVAL-SCHEDULE | 2 +-
init.d/mtab.in | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/FEATURE-REMOVAL-SCHEDULE b/FEATURE-REMOVAL-SCHEDULE
index 271316f..344711f 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 61b57bd..e38d33e 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