aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2014-08-14 13:50:48 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-08-14 13:50:48 -0500
commit1b26d547a50e2554483bdbfd288fae75fd76bfa0 (patch)
treef73b26220984b7e9f15e680b46868b7cfa1009ef
parentc8018d04a7b238b57a3d74a68e2af02af395f510 (diff)
Deprecate the mtab service script
The mtab service script is no longer needed on modern Linux systems, so we can remove it in 1.0. However, we need to set a deprecation notice first.
-rw-r--r--FEATURE-REMOVAL-SCHEDULE11
-rw-r--r--init.d/mtab.in10
2 files changed, 18 insertions, 3 deletions
diff --git a/FEATURE-REMOVAL-SCHEDULE b/FEATURE-REMOVAL-SCHEDULE
index 682bed88..2c05a3ee 100644
--- a/FEATURE-REMOVAL-SCHEDULE
+++ b/FEATURE-REMOVAL-SCHEDULE
@@ -59,3 +59,14 @@ Why: Depprecated in favor of executable scripts in @SYSCONFDIR@/local.d
Who:
---------------------------
+
+What: the mtab service script
+
+When: 1.0
+
+Why: /etc/mtab should be a symbolic link to /proc/self/mounts on modern
+ Linux systems
+
+Who:
+
+---------------------------
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"