mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Move 9p mount code outside of the SPICE conditional. Close #85
This commit is contained in:
parent
8b3d64882f
commit
f3659e760b
1 changed files with 12 additions and 12 deletions
24
quickemu
24
quickemu
|
@ -635,19 +635,19 @@ function vm_boot() {
|
|||
if [ "${guest_os}" != "macos" ] && [ -n "${PUBLIC}" ]; then
|
||||
echo " - WebDAV: On guest: dav://localhost:9843/"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${guest_os}" != "windows" ] && [ -n "${PUBLIC}" ]; then
|
||||
echo -n " - 9P: On guest: "
|
||||
if [ "${guest_os}" == "linux" ]; then
|
||||
echo "sudo mount -t 9p -o trans=virtio,version=9p2000.L,msize=104857600 ${PUBLIC_TAG} ~/$(basename "${PUBLIC}")"
|
||||
elif [ "${guest_os}" == "macos" ]; then
|
||||
# PUBLICSHARE needs to be world writeable for seamless integration with
|
||||
# macOS. Test if it is world writeable, and prompt what to do if not.
|
||||
echo "sudo mount_9p ${PUBLIC_TAG}"
|
||||
if [ "${PUBLIC_PERMS}" != "drwxrwxrwx" ]; then
|
||||
echo " - 9P: On host: chmod 777 ${PUBLIC}"
|
||||
echo " Required for macOS integration 👆"
|
||||
fi
|
||||
if [ "${guest_os}" != "windows" ] && [ -n "${PUBLIC}" ]; then
|
||||
echo -n " - 9P: On guest: "
|
||||
if [ "${guest_os}" == "linux" ]; then
|
||||
echo "sudo mount -t 9p -o trans=virtio,version=9p2000.L,msize=104857600 ${PUBLIC_TAG} ~/$(basename "${PUBLIC}")"
|
||||
elif [ "${guest_os}" == "macos" ]; then
|
||||
# PUBLICSHARE needs to be world writeable for seamless integration with
|
||||
# macOS. Test if it is world writeable, and prompt what to do if not.
|
||||
echo "sudo mount_9p ${PUBLIC_TAG}"
|
||||
if [ "${PUBLIC_PERMS}" != "drwxrwxrwx" ]; then
|
||||
echo " - 9P: On host: chmod 777 ${PUBLIC}"
|
||||
echo " Required for macOS integration 👆"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue