From c60ef5c381e9edc7e30be9dcc9cc7e123515452e Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 17 Aug 2014 11:23:52 -0500 Subject: 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 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 -- cgit v1.2.3