Use /proc/mounts in docker init script

Switch one instance of /etc/mtab.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
Ian Campbell 2016-06-13 11:00:44 +01:00
parent 6625be95a5
commit 4d4ea240a8

View File

@ -42,7 +42,7 @@ start()
export no_proxy="$(mobyconfig get proxy/exclude)"
fi
grep -q "osxfs /tmp" /etc/mtab || ( [ -d /Mac/tmp ] && mount --bind /Mac/tmp /tmp )
grep -q "osxfs /tmp" /proc/mounts || ( [ -d /Mac/tmp ] && mount --bind /Mac/tmp /tmp )
for d in Users Volumes private
do