Drop smbd support

This commit is contained in:
Martin Wimpress 2021-09-25 13:08:56 +01:00
parent 288d779e2c
commit f061c3a67f
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
2 changed files with 5 additions and 13 deletions

View File

@ -268,7 +268,6 @@ You can also pass optional parameters
--snapshot info : Show disk/snapshot info.
--status-quo : Do not commit any changes to disk/snapshot.
--fullscreen : Starts VM in full screen mode (Ctl+Alt+f to exit)"
--no-smb : Do not expose the home directory via SMB.
--screen <screen> : Use specified screen to determine the window size.
```

View File

@ -363,23 +363,19 @@ function vm_boot() {
echo " - Video: ${DISPLAY_DEVICE}"
echo " - GL: ${GL^^}"
echo " - Virgil3D: ${VIRGL^^}"
# GL is not working with GTK and virtio-vga
echo " - Display: ${OUTPUT^^}"
# Set the hostname of the VM
local NET="user,hostname=${VMNAME}"
# If smbd is available, and --no-smb is not set, export $HOME to the guest via samba
if [[ -e "/usr/sbin/smbd" && -z ${NO_SMB} ]]; then
NET="${NET},smb=${HOME}"
fi
if [[ ${NET} == *"smb"* ]]; then
echo " - smbd: ${HOME} will be exported to the guest via smb://10.0.2.4/qemu"
elif [[ ${NO_SMB} -eq 1 ]]; then
echo " - smbd: ${HOME} will not be exported to the guest. '--no-smb' is set."
if [ "${GL}" == "on" ] && [ "${DISPLAY_DEVICE}" == "virtio-vga" ]; then
DISPLAY_DEVICE="${DISPLAY_DEVICE},virgl=on"
echo " - Virgil3D: ON"
else
echo " - smbd: ${HOME} will not be exported to the guest. 'smbd' not found."
echo " - Virgil3D: OFF"
fi
# Find a free port to expose ssh to the guest
@ -624,9 +620,6 @@ else
-shortcut|--shortcut)
SHORTCUT=1
shift;;
-no-smb|--no-smb)
NO_SMB=1
shift;;
-h|--h|-help|--help)
usage;;
*)