diff options
Diffstat (limited to 'source/a/util-linux/doinst.sh')
-rw-r--r-- | source/a/util-linux/doinst.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/a/util-linux/doinst.sh b/source/a/util-linux/doinst.sh index 8277c0e65..0d9730801 100644 --- a/source/a/util-linux/doinst.sh +++ b/source/a/util-linux/doinst.sh @@ -31,3 +31,11 @@ done if [ -r etc/default/su.new ]; then config etc/default/su.new fi + +# Since libmount has dropped all support for an /etc/mtab file, if we find that +# we'll need to replace it with a symlink to /proc/mounts: +if [ ! -L etc/mtab ]; then + rm -f etc/mtab + ( cd etc ; ln -sf /proc/mounts mtab ) +fi + |