From f7bc4690260d4ce2384f4920c4b870b78eff9d68 Mon Sep 17 00:00:00 2001 From: Max Arnold Date: Tue, 9 Oct 2018 08:54:47 +0700 Subject: [PATCH] Fix startup mount error on Parallels 14 guest tools --- _common/parallels.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/_common/parallels.sh b/_common/parallels.sh index 16b36442e..1b2a6896a 100644 --- a/_common/parallels.sh +++ b/_common/parallels.sh @@ -20,5 +20,16 @@ parallels-iso|parallels-pvm) umount /tmp/parallels; rm -rf /tmp/parallels; rm -f $HOME_DIR/*.iso; + + # Parallels Tools for Linux includes native auto-mount script, + # which causes losing some of Vagrant-relative shared folders. + # So, we should disable this behavior. + # https://github.com/Parallels/vagrant-parallels/issues/325#issuecomment-418727113 + auto_mount_script='/usr/bin/prlfsmountd' + if [ -f "${auto_mount_script}" ]; then + echo -e '#!/bin/sh\n'\ + '# Shared folders auto-mount is disabled by Vagrant ' \ + > "${auto_mount_script}" + fi ;; esac