mtab: add verbose level deprecation warnings
This commit is contained in:
parent
bee3f8463c
commit
c60ef5c381
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user