If /etc/mtab exists as a file, replace it with a symlink (Closes: #746570).
This commit is contained in:
parent
547f559343
commit
114a778b7a
|
@ -2,9 +2,10 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Create /etc/mtab symlink
|
# Create /etc/mtab symlink, replacing a regular file if necessary
|
||||||
|
|
||||||
if [ ! -L /etc/mtab ]
|
if [ ! -L /etc/mtab ]
|
||||||
then
|
then
|
||||||
|
rm -f /etc/mtab
|
||||||
ln -s /proc/mtab /etc/mtab
|
ln -s /proc/mtab /etc/mtab
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue