mtab: add verbose level deprecation warnings

This commit is contained in:
William Hubbs 2014-08-17 11:23:52 -05:00
parent bee3f8463c
commit c60ef5c381
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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