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.
This commit is contained in:
parent
c8018d04a7
commit
1b26d547a5
@ -59,3 +59,14 @@ Why: Depprecated in favor of executable scripts in @SYSCONFDIR@/local.d
|
|||||||
Who:
|
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:
|
||||||
|
|
||||||
|
---------------------------
|
||||||
|
@ -12,12 +12,16 @@ depend()
|
|||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
if [ -L /etc/mtab ]
|
if [ -L /etc/mtab ]; then
|
||||||
then
|
|
||||||
einfo "Skipping mtab update (mtab is a symbolic link)"
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
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"
|
ebegin "Updating /etc/mtab"
|
||||||
if ! echo 2>/dev/null >/etc/mtab; then
|
if ! echo 2>/dev/null >/etc/mtab; then
|
||||||
ewend 1 "/etc/mtab is not updateable"
|
ewend 1 "/etc/mtab is not updateable"
|
||||||
|
Loading…
Reference in New Issue
Block a user